From 783c76b86ef883097a11b4c2a7dfde884bea966c Mon Sep 17 00:00:00 2001 From: bep Date: Mon, 19 Jan 2015 10:04:57 +0100 Subject: [PATCH] Make RSS dates valid See #789 --- tpl/template_embedded.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tpl/template_embedded.go b/tpl/template_embedded.go index 6f089aefe..50849e234 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 }}