Skip to content

Commit 9b2809e

Browse files
authored
fix: Site.Author -> Site.Params.Author for Hugo v1.156.0 (#933)
1 parent 62196dd commit 9b2809e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

layouts/list.rss.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<link>{{ .Permalink }}</link>
55
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
66
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
7-
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
8-
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
9-
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
7+
<language>{{.}}</language>{{end}}{{ with .Site.Params.Author.email }}
8+
<managingEditor>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Params.Author.email }}
9+
<webMaster>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
1010
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
1111
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
1212
{{ with .OutputFormats.Get "RSS" }}
@@ -27,7 +27,7 @@
2727
<title>{{ .Title }}</title>
2828
<link>{{ .Permalink }}</link>
2929
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
30-
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
30+
{{ with .Site.Params.Author.email }}<author>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</author>{{end}}
3131
<guid>{{ .Permalink }}</guid>
3232
<description>
3333
{{ $img := (.Resources.ByType "image").GetMatch "*featured*" }}

0 commit comments

Comments
 (0)