URI: 
       Trivial fixes to get RSS 2.0 feeds to validate. - hugo - [fork] hugo port for 9front
  HTML git clone git@git.drkhsh.at/hugo.git
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
   DIR LICENSE
       ---
   DIR commit 700c2b8f22a4c0f428abea8dcf61d8876886fc13
   DIR parent 5bfc812dc6f8d531b790a5d9d0d7be3da205c60d
  HTML Author: Anthony Fok <foka@debian.org>
       Date:   Mon, 12 Jan 2015 22:24:37 -0700
       
       Trivial fixes to get RSS 2.0 feeds to validate.
       
       RSS 2.0 requires the email be listed in `<author>`,
       and `UTC` as a timezone is not accepted, but `UT` or `GMT` are.
       
       See #789 for more information.  Thanks to @snej for the report!
       
       Diffstat:
         M tpl/template_embedded.go            |       9 +++++----
       
       1 file changed, 5 insertions(+), 4 deletions(-)
       ---
   DIR diff --git a/tpl/template_embedded.go b/tpl/template_embedded.go
       @@ -52,16 +52,17 @@ func (t *GoHtmlTemplate) EmbedTemplates() {
            <description>Recent content {{ with .Title }}in {{.}} {{ end }}on {{ .Site.Title }}</description>
            <generator>Hugo -- gohugo.io</generator>
            {{ with .Site.LanguageCode }}<language>{{.}}</language>{{end}}
       -    {{ with .Site.Author.name }}<author>{{.}}</author>{{end}}
       +    {{ if .Site.Author.email }}<managingEditor>{{.Site.Author.email}}{{ with .Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}
       +    {{ if .Site.Author.email }}<webMaster>{{.Site.Author.email}}{{ with .Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}
            {{ with .Site.Copyright }}<copyright>{{.}}</copyright>{{end}}
       -    <lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}</lastBuildDate>
       +    <lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05" }} {{ with .Date.Format "MST" }}{{ if eq . "UTC" }}UT{{else}}{{.}}{{end}}{{end}}</lastBuildDate>
            <atom:link href="{{.Url}}" rel="self" type="application/rss+xml" />
            {{ range first 15 .Data.Pages }}
            <item>
              <title>{{ .Title }}</title>
              <link>{{ .Permalink }}</link>
       -      <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}</pubDate>
       -      {{with .Site.Author.name}}<author>{{.}}</author>{{end}}
       +      <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05" }} {{ with .Date.Format "MST" }}{{ if eq . "UTC" }}UT{{else}}{{.}}{{end}}{{end}}</pubDate>
       +      {{ if .Site.Author.email }}<author>{{.Site.Author.email}}{{ with .Site.Author.name }} ({{.}}){{end}}</author>{{end}}
              <guid>{{ .Permalink }}</guid>
              <description>{{ .Content | html }}</description>
            </item>