From f948f8cb98f6fe453701caaa8d97e97ba365496f Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Sun, 18 Sep 2016 18:37:06 +0200 Subject: [PATCH] Revert "Use new `.Authors` instead of deprecated `.Author` (#216)" This reverts commit 555d24698b76ba223ec835d3818747ca23c56470. --- layouts/rss.xml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/layouts/rss.xml b/layouts/rss.xml index 0a7b5b54..06575193 100644 --- a/layouts/rss.xml +++ b/layouts/rss.xml @@ -1,12 +1,11 @@ - {{ $author := .Site.Authors.Get "0"}} {{ .Site.Title }} {{ .Permalink }} Recent content on {{ .Site.Title }} Hugo -- gohugo.io{{ with .Site.LanguageCode }} - {{.}}{{end}}{{ with $author.Email }} - {{.}}{{ with $author.Name }} ({{.}}){{end}}{{end}}{{ with $author.Email }} + {{.}}{{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}}{{ if not .Date.IsZero }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} @@ -16,7 +15,7 @@ {{ .Title }} {{ .Permalink }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ with $author.Email }}{{.}}{{ with $author.Name }} ({{.}}){{end}}{{end}} + {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }} {{ .Content | html }}