Added ability to hide date

This commit is contained in:
Brandon Rozek 2024-01-01 19:39:04 -05:00
parent 0277672917
commit 407fbd59f4

View file

@ -1,4 +1,4 @@
{{ if not .Date.IsZero }}
{{ if and (not .Date.IsZero) (not .Params.hideDate) (not .Site.Params.hideDate) }}
{{ $publishString := .Scratch.Get "beforeDateString" }}
{{ $singlePageDateFormat := .Site.Params.singlePageDateFormat | default "January 2, 2006"}}
{{ $pubdate := .Date.Format $singlePageDateFormat }}