diff options
author | Justin Bridouz <justin.berthault@zaclys.net> | 2018-09-28 23:33:53 +0300 |
---|---|---|
committer | Justin Bridouz <justin.berthault@zaclys.net> | 2018-09-28 23:33:53 +0300 |
commit | 6091475e4efb8a864ef525370f48fa9e811f1124 (patch) | |
tree | fa5ec029ba49fb37cfe2e8ac2f9b9d7eb57c2492 /layouts | |
parent | b1c941fa96e9297262e44a6d22f69496a0706e6e (diff) |
Local date rss
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/rss.xml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/layouts/rss.xml b/layouts/rss.xml index 38476b1..d89beb8 100644 --- a/layouts/rss.xml +++ b/layouts/rss.xml @@ -8,7 +8,9 @@ <managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }} <webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }} <copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }} - <lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }} + <lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 +15:04:05 -0700".Date.Local | safeHTML +}}</lastBuildDate>{{ end }} {{ with .OutputFormats.Get "RSS" }} {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }} {{ end }} @@ -16,7 +18,8 @@ <item> <title>{{ .Title }}</title> <link>{{ .Permalink }}</link> - <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 +0100" | safeHTML }}</pubDate> + <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 ++0100".Date.Local | safeHTML }}</pubDate> {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}} <guid>{{ .Permalink }}</guid> <description>{{ .Content | html }}</description> |