diff --git a/layouts/rss.xml b/layouts/rss.xml index 06575193..0a7b5b54 100644 --- a/layouts/rss.xml +++ b/layouts/rss.xml @@ -1,11 +1,12 @@ + {{ $author := .Site.Authors.Get "0"}} {{ .Site.Title }} {{ .Permalink }} Recent content on {{ .Site.Title }} Hugo -- gohugo.io{{ with .Site.LanguageCode }} - {{.}}{{end}}{{ with .Site.Author.email }} - {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} + {{.}}{{end}}{{ with $author.Email }} + {{.}}{{ with $author.Name }} ({{.}}){{end}}{{end}}{{ with $author.Email }} {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} {{.}}{{end}}{{ if not .Date.IsZero }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} @@ -15,7 +16,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 $author.Email }}{{.}}{{ with $author.Name }} ({{.}}){{end}}{{end}} {{ .Permalink }} {{ .Content | html }}