From a27f871d8cb306d7bef56fa0a1df0e8b84103103 Mon Sep 17 00:00:00 2001 From: Adam Whitlock Date: Sun, 9 Jan 2022 17:28:44 -0600 Subject: Fixed date on posts and index --- layouts/_default/single.html | 8 ++++---- layouts/index.html | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 4ac5d36..0947162 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -13,11 +13,11 @@
-

{{.Page.Title | title }}

+

{{.Page.Title | title }}

+

+ {{ $dateFormat := .Site.Params.dateFormat | default "January 2, 2006"}}{{ if ne .Lastmod .PublishDate }}, last updated on {{ .Lastmod.Format $dateFormat }}{{ end }}

{{.Page.Description}}

- {{ $dateFormat := .Site.Params.dateFormat | default "January 2, 2006"}} -

Published on {{ .PublishDate.Format $dateFormat }}{{ if ne .Lastmod .PublishDate }}, last updated on {{ .Lastmod.Format $dateFormat }} - {{ end }} +

Published on {{ .PublishDate.Format $dateFormat }}

{{ .Content }}
diff --git a/layouts/index.html b/layouts/index.html index 5f5b88d..e2888db 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -32,8 +32,9 @@
-

{{ .Title | title }}

+

{{ .Title | title }}

+

{{.Page.Description}}

{{ .Summary }}

{{ if .Truncated }}
-- cgit v1.2.3