From 1ae24ada388e9581878c80b747e8afa10cc22475 Mon Sep 17 00:00:00 2001
From: Ian Anderson
Date: Fri, 1 Oct 2021 10:14:07 -0700
Subject: [PATCH] Only print article date if it is non-zero (#397)
---
layouts/_default/single.html | 2 ++
1 file changed, 2 insertions(+)
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 7cf01e2..2f2eed3 100755
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -30,9 +30,11 @@
{{ end }}
{{/* Hugo uses Go's date formatting is set by example. Here are two formats */}}
+ {{ if not .Date.IsZero }}
+ {{end}}
{{/*
Show "reading time" and "word count" but only if one of the following are true: