diff --git a/content/templates/rss.md b/content/templates/rss.md index 70c3c7704..60e09ccf1 100644 --- a/content/templates/rss.md +++ b/content/templates/rss.md @@ -69,9 +69,7 @@ This is the default RSS template that ships with Hugo. It adheres to the [RSS 2. {{ .Permalink }} Recent content {{ with .Title }}in {{.}} {{ 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.Copyright }} {{.}}{{end}}{{ if not .Date.IsZero }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} @@ -80,7 +78,6 @@ This is the default RSS template that ships with Hugo. It adheres to the [RSS 2. {{ .Title }} {{ .Permalink }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }} {{ .Content | html }} diff --git a/content/templates/variables.md b/content/templates/variables.md index b85387b46..12f940f17 100644 --- a/content/templates/variables.md +++ b/content/templates/variables.md @@ -168,7 +168,7 @@ Also available is `.Site` which has the following: **.Site.Files** All of the source files of the site.
**.Site.Menus** All of the menus in the site.
**.Site.Title** A string representing the title of the site.
-**.Site.Author** A map of the authors as defined in the site configuration.
+**.Site.Authors** An ordered list (ordered by defined weight) of the authors as defined in the site configuration.
**.Site.LanguageCode** A string representing the language as defined in the site configuration. This is mostly used to populate the RSS feeds with the right language code.
**.Site.DisqusShortname** A string representing the shortname of the Disqus shortcode as defined in the site configuration.
**.Site.GoogleAnalytics** A string representing your tracking code for Google Analytics as defined in the site configuration.