RSS support follow claim

This commit is contained in:
Weaxs 2024-10-28 13:26:03 +08:00
parent f037da3120
commit 211235cf0f
2 changed files with 11 additions and 0 deletions

View file

@ -159,3 +159,8 @@ forgejoDefaultServer = "https://v8.next.forgejo.org"
# bing = "" # bing = ""
# pinterest = "" # pinterest = ""
# yandex = "" # yandex = ""
[RSSNext]
# feedId = ""
# userId = ""

View file

@ -27,6 +27,12 @@
{{- with .OutputFormats.Get "RSS" -}} {{- with .OutputFormats.Get "RSS" -}}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }} {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{- end -}} {{- end -}}
{{ if and (.Site.Params.RSSNext.feedId) (.Site.Params.RSSNext.userId) }}
<follow_challenge>
<feedId>{{ .Site.Params.RSSNext.feedId }}</feedId>
<userId>{{ .Site.Params.RSSNext.userId }}</userId>
</follow_challenge>
{{ end }}
{{ range $pages }} {{ range $pages }}
<item> <item>
<title>{{ .Title }}</title> <title>{{ .Title }}</title>