From 056a22866142935cd6c95cd62938e92215e16120 Mon Sep 17 00:00:00 2001 From: n07070 Date: Mon, 6 Apr 2026 10:23:13 +0200 Subject: [PATCH] Change RSS generation. See https://discourse.gohugo.io/t/site-vs-site-vs-site/49252 and https://github.com/zerovip/hugo-theme-zero/commit/b6df155eb8d355b81a10121e4c557361a1cbe0e8 and https://github.com/adityatelange/hugo-PaperMod/issues/1839 --- layouts/_default/rss.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index f032f74..b41af6d 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -1,5 +1,5 @@ - + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} - {{ end }}{{ .Site.Title }}{{ end }} {{ .Permalink }} @@ -9,14 +9,14 @@ {{.}} {{end}} - {{ with .Site.Author.email }} + {{ with site.Params.author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}} + {{.}}{{ with $ site.Params.author.name }} ({{.}}){{end}} {{end}} - {{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}} + {{ with site.Params.author.email }} + {{.}}{{ with $ site.Params.author.name }} ({{.}}){{end}} {{end}} {{ with .Site.Copyright }} @@ -39,7 +39,7 @@ {{ .Permalink }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ with site.Params.author.email }}{{.}}{{ with $ site.Params.author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }} {{ .Content | html }} @@ -48,4 +48,4 @@ {{- end }} - +