From 9b2809eb243bebaf96bd32f3cb7d6e395b909c86 Mon Sep 17 00:00:00 2001 From: Quan-feng WU <32387646+Fenyutanchan@users.noreply.github.com> Date: Thu, 19 Feb 2026 16:16:29 +0800 Subject: [PATCH] fix: Site.Author -> Site.Params.Author for Hugo v1.156.0 (#933) --- layouts/list.rss.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/list.rss.xml b/layouts/list.rss.xml index c8eddcf..37420db 100644 --- a/layouts/list.rss.xml +++ b/layouts/list.rss.xml @@ -4,9 +4,9 @@ {{ .Permalink }} Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} Hugo -- gohugo.io{{ with .Site.LanguageCode }} - {{.}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} + {{.}}{{end}}{{ with .Site.Params.Author.email }} + {{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Params.Author.email }} + {{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} {{.}}{{end}}{{ if not .Date.IsZero }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} {{ with .OutputFormats.Get "RSS" }} @@ -27,7 +27,7 @@ {{ .Title }} {{ .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 }} {{ $img := (.Resources.ByType "image").GetMatch "*featured*" }}