feat: Follow RSS Claim

This commit is contained in:
CDN 2024-09-24 15:57:36 +08:00
parent bd471708d3
commit e23a873434
Signed by: cdn0x12
GPG key ID: 0C656827F9F80080

View file

@ -20,7 +20,11 @@
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
<copyright>{{.}}</copyright>{{end}}{{with .Site.Author.FollowClaim.feedId }}
<follow_challenge>
<feedId>{{ .Site.FollowClaim.feedId }}</feedId>
<userId>{{ .Site.FollowClaim.userId }}</userId>
</follow_challenge>{{end}}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{- with .OutputFormats.Get "RSS" -}}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}