From 55dadc702cbe691c63ad12f48d03a489cd862169 Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Mon, 26 Aug 2019 07:20:19 +0200 Subject: [PATCH] layout: improve date displayed Co-Authored-by: Igor Milhit --- layouts/_default/list.html | 2 +- layouts/_default/rss.xml | 2 +- layouts/_default/section.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 88e7eb2..adcde02 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -10,7 +10,7 @@ {{ range .Pages }}
{{.Title}} - — {{.Date.Format "2006-01-02"}} + — {{.PublishDate.Format "2006-01-02"}}
{{ end }} diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index a4c6200..4ff6a10 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -17,7 +17,7 @@ {{ .Title }} {{ .Permalink }} - {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }} {{ .Content | html }} diff --git a/layouts/_default/section.html b/layouts/_default/section.html index e8bc046..e614194 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -6,7 +6,7 @@ {{.Title}} - — {{ .Date.Format "2006-01-02" }} + — {{ .PublishDate.Format "2006-01-02" }} {{ with .Params.categories }} {{ range . }} — {{ . }}