Feat: Add Follow site challenge support in RSS feed

This commit is contained in:
Xm798
2024-10-01 20:36:28 +08:00
committed by Cell
parent e9edbba217
commit 566a87c791
3 changed files with 11 additions and 1 deletions
+4
View File
@@ -822,6 +822,10 @@ enableEmoji = true
limit = 10
# whether to show the full text content in feed.
fullText = true
# Site Challenge for Follow: https://follow.is/
[params.feed.follow]
feedId = ""
userId = ""
# FixIt 0.3.12 | NEW Custom partials config
# Custom partials must be stored in the /layouts/partials/ directory.
+6
View File
@@ -14,6 +14,12 @@
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<description>{{ .Site.Params.description | default .Site.Title }}</description>
{{- if and (.Site.Params.feed.follow.feedId) (.Site.Params.feed.follow.userId) }}
<follow_challenge>
<feedId>{{ .Site.Params.feed.follow.feedId }}</feedId>
<userId>{{ .Site.Params.feed.follow.userId }}</userId>
</follow_challenge>
{{- end }}
<generator>Hugo {{ hugo.Version }} &amp; FixIt {{ .Version }}</generator>
<language>{{ .Site.Language.LanguageCode }}</language>{{ with .Site.Params.author.email }}
<managingEditor>{{.}}{{ with $.Site.Params.author.name }} ({{ . }}){{ end }}</managingEditor>{{ end }}{{ with .Site.Params.author.email }}
+1 -1
View File
@@ -1,4 +1,4 @@
{{- .Scratch.Set "version" "v0.3.13-9e9bc9ef" -}}
{{- .Scratch.Set "version" "v0.3.13-8614ed49" -}}
{{- .Scratch.Set "this" dict -}}
{{- partial "init/detection-env.html" . -}}