From: bep Date: Mon, 19 Jan 2015 09:04:57 +0000 (+0100) Subject: Make RSS dates valid X-Git-Tag: v0.13~168 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=783c76b86ef883097a11b4c2a7dfde884bea966c;p=brevno-suite%2Fhugo Make RSS dates valid See #789 --- diff --git a/tpl/template_embedded.go b/tpl/template_embedded.go index 6f089aef..50849e23 100644 --- a/tpl/template_embedded.go +++ b/tpl/template_embedded.go @@ -55,13 +55,13 @@ func (t *GoHtmlTemplate) EmbedTemplates() { {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} {{ with .Site.Copyright }}{{.}}{{end}} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05" }} {{ with .Date.Format "MST" }}{{ if eq . "UTC" }}UT{{else}}{{.}}{{end}}{{end}} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" }} {{ range first 15 .Data.Pages }} {{ .Title }} {{ .Permalink }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05" }} {{ with .Date.Format "MST" }}{{ if eq . "UTC" }}UT{{else}}{{.}}{{end}}{{end}} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" }} {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }} {{ .Content | html }}