From f8cc991b774ccd1bf99d05c44ba96eb3e46cbd83 Mon Sep 17 00:00:00 2001 From: frosty Date: Mon, 19 May 2025 08:52:49 -0400 Subject: use 'with' to handle missing dates --- themes/polaris/layouts/_default/now.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'themes/polaris/layouts/_default/now.html') diff --git a/themes/polaris/layouts/_default/now.html b/themes/polaris/layouts/_default/now.html index bb77eaf..5bd01c0 100644 --- a/themes/polaris/layouts/_default/now.html +++ b/themes/polaris/layouts/_default/now.html @@ -1,8 +1,8 @@ {{ define "main" }} -

{{ .Title }}

+

{{ .Title }}

{{ .Content }} -

- Last updated {{ .Date | time.Format "Jan 02 2006" }}. - What the heck is a “now page”? -

+

+ {{ with .Date }}Last updated {{ . | time.Format "Jan 02 2006" }}.{{ end }} + What the heck is a “now page”? +

{{ end }} -- cgit v1.2.3-70-g09d2