From 2e4ccc43fcc7aa88f33ce19aec336a7d9b28fe35 Mon Sep 17 00:00:00 2001 From: imander Date: Sat, 20 Feb 2021 17:00:24 -0800 Subject: [PATCH] Only print article date if it is non-zero --- layouts/_default/single.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index cbb7e74..933094e 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: