diff options
author | Justin Berthault <justin.berthault@zaclys.net> | 2018-09-29 20:22:44 +0300 |
---|---|---|
committer | Justin Berthault <justin.berthault@zaclys.net> | 2018-09-29 20:22:44 +0300 |
commit | c316a164f81762599cc694bb278a2c38f6c187b8 (patch) | |
tree | c115bcb28c6e1e3046e455cfe260a89bc75de0ec /layouts | |
parent | b353dc755ba8c77bd11d49b3a0a2a3a4ceceecd7 (diff) |
Date again
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/single.html | 3 | ||||
-rw-r--r-- | layouts/rss.xml | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 0900372..e396a74 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -19,8 +19,7 @@ <a href="{{ .Permalink }}"> {{- .Title -}} </a> - <time datetime="{{ dateFormat "02 Jan 06 -15:04 +01:00" .Date.UTC }}"> + <time datetime="{{ .Date.Format "02 Jan 06 15:04 +01:00" }}"> {{- .Date.Format "02/01/2006" -}} </time> </h1> diff --git a/layouts/rss.xml b/layouts/rss.xml index 4aa772b..bad0a05 100644 --- a/layouts/rss.xml +++ b/layouts/rss.xml @@ -8,7 +8,7 @@ <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>{{ dateFormat "02 Jan 06 15:04 +0100".Date.UTC }}</lastBuildDate>{{ end }} + <lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }} {{ with .OutputFormats.Get "RSS" }} {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }} {{ end }} @@ -16,7 +16,7 @@ <item> <title>{{ .Title }}</title> <link>{{ .Permalink }}</link> - <pubDate>{{ dateFormat "02 Jan 06 15:04 +0100".Date.UTC }}</pubDate> + <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}} <guid>{{ .Permalink }}</guid> <description>{{ .Content | html }}</description> |