mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-11-21 15:56:29 -05:00
Added ability to hide date
This commit is contained in:
parent
0277672917
commit
407fbd59f4
1 changed files with 1 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
{{ if not .Date.IsZero }}
|
{{ if and (not .Date.IsZero) (not .Params.hideDate) (not .Site.Params.hideDate) }}
|
||||||
{{ $publishString := .Scratch.Get "beforeDateString" }}
|
{{ $publishString := .Scratch.Get "beforeDateString" }}
|
||||||
{{ $singlePageDateFormat := .Site.Params.singlePageDateFormat | default "January 2, 2006"}}
|
{{ $singlePageDateFormat := .Site.Params.singlePageDateFormat | default "January 2, 2006"}}
|
||||||
{{ $pubdate := .Date.Format $singlePageDateFormat }}
|
{{ $pubdate := .Date.Format $singlePageDateFormat }}
|
||||||
|
|
Loading…
Reference in a new issue