From be6702f0f443c0c92ba7d2b1ca57bcf8ea3314d5 Mon Sep 17 00:00:00 2001 From: bimmer44 Date: Tue, 29 Jan 2019 11:39:18 +0200 Subject: Further attempt to fix date format issue --- layouts/_default/list.html | 2 +- layouts/_default/single.html | 4 ++-- layouts/index.html | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 461fef5..869380f 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -14,7 +14,7 @@

{{ .Title }}

- {{ .Date.Format .Site.Params.DateFormat }}{{ if .Params.author }} by {{ .Params.author }}{{ end }} + {{ .Date.Format "Jan 2, 2006" }}{{ if .Params.author }} by {{ .Params.author }}{{ end }}
{{ .Content }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 2261dc0..26fec55 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -13,7 +13,7 @@

{{ .Title }}

- +
{{ .Content }} @@ -26,4 +26,4 @@ -{{ partial "footer.html" . }} \ No newline at end of file +{{ partial "footer.html" . }} diff --git a/layouts/index.html b/layouts/index.html index 461fef5..d9930f2 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -14,7 +14,7 @@

{{ .Title }}

- {{ .Date.Format .Site.Params.DateFormat }}{{ if .Params.author }} by {{ .Params.author }}{{ end }} + {{ .Date.Format "Jan 2, 2006" }}{{ if .Params.author }} by {{ .Params.author }}{{ end }}
{{ .Content }} @@ -32,4 +32,4 @@ -{{ partial "footer.html" . }} \ No newline at end of file +{{ partial "footer.html" . }} -- cgit v1.2.3