From 211235cf0fdc6ff8cc4c993b565260888907adbf Mon Sep 17 00:00:00 2001 From: Weaxs <459312872@qq.com> Date: Mon, 28 Oct 2024 13:26:03 +0800 Subject: [PATCH] RSS support follow claim --- config/_default/params.toml | 5 +++++ layouts/_default/rss.xml | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/config/_default/params.toml b/config/_default/params.toml index d15943ef9..478dd0aac 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -159,3 +159,8 @@ forgejoDefaultServer = "https://v8.next.forgejo.org" # bing = "" # pinterest = "" # yandex = "" + +[RSSNext] +# feedId = "" +# userId = "" + diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index eab240932..449f08dbe 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -27,6 +27,12 @@ {{- with .OutputFormats.Get "RSS" -}} {{ printf "" .Permalink .MediaType | safeHTML }} {{- end -}} + {{ if and (.Site.Params.RSSNext.feedId) (.Site.Params.RSSNext.userId) }} + + {{ .Site.Params.RSSNext.feedId }} + {{ .Site.Params.RSSNext.userId }} + + {{ end }} {{ range $pages }} {{ .Title }}