From 65d185843873dbe834c326567a5c6fe1a14cd6e0 Mon Sep 17 00:00:00 2001 From: Emin Martinian Date: Thu, 27 Dec 2018 20:06:39 -0500 Subject: [PATCH] If nodate is set do not show the date line. For pages like about or bio or things like that, people may not want to have a date line. With this change, you can have `nodate = true` set for a page to suppress the date. --- layouts/_default/single.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 73ed130..c1b4a42 100755 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -19,9 +19,13 @@ {{- .Title -}} {{/* Hugo uses Go's date formatting is set by example. Here are two formats */}} + {{ if not .Params.nodate }} + {{ else }} + + {{ end }} {{/* Show "reading time" and "word count" but only if one of the following are true: 1) A global config `params` value is set `show_reading_time = true`