mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-21 21:51:53 +02:00
rss support RSSNEXT/Follow claim
This commit is contained in:
parent
c2db79ee4b
commit
948467b6a7
3 changed files with 32 additions and 18 deletions
|
@ -159,3 +159,7 @@ forgejoDefaultServer = "https://v8.next.forgejo.org"
|
||||||
# bing = ""
|
# bing = ""
|
||||||
# pinterest = ""
|
# pinterest = ""
|
||||||
# yandex = ""
|
# yandex = ""
|
||||||
|
|
||||||
|
[RSSNext]
|
||||||
|
# feedId = ""
|
||||||
|
# userId = ""
|
||||||
|
|
|
@ -155,3 +155,7 @@ smartTOCHideUnfocusedChildren = false
|
||||||
# bing = ""
|
# bing = ""
|
||||||
# pinterest = ""
|
# pinterest = ""
|
||||||
# yandex = ""
|
# yandex = ""
|
||||||
|
|
||||||
|
[RSSNext]
|
||||||
|
# feedId = ""
|
||||||
|
# userId = ""
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Add table
Reference in a new issue