Skip to content

Commit

Permalink
RSS support follow claim
Browse files Browse the repository at this point in the history
  • Loading branch information
Weaxs committed Oct 28, 2024
1 parent f037da3 commit 211235c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,8 @@ forgejoDefaultServer = "https://v8.next.forgejo.org"
# bing = ""
# pinterest = ""
# yandex = ""

[RSSNext]
# feedId = ""
# userId = ""

6 changes: 6 additions & 0 deletions layouts/_default/rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@
{{- with .OutputFormats.Get "RSS" -}}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{- 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 }}
<item>
<title>{{ .Title }}</title>
Expand Down

0 comments on commit 211235c

Please sign in to comment.