From d7e289572a5ba035bb415649c5ca01acd3ddc0b5 Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Thu, 30 Jun 2022 19:27:28 -0500 Subject: [PATCH] Fix list date shown as 0001-01-01 when not set --- layouts/_default/index.html | 4 +++- layouts/_default/list.html | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/layouts/_default/index.html b/layouts/_default/index.html index 1cab615..0368c94 100644 --- a/layouts/_default/index.html +++ b/layouts/_default/index.html @@ -20,9 +20,11 @@ {{ .Title | markdownify }}
+ {{- with .Date }} + {{- end }} {{ with .Params.Author }} {{ end }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 02f69b4..9fcba67 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -11,9 +11,11 @@ {{ .Title | markdownify }}