better date handling
Marco Andronaco andronacomarco@gmail.com
Wed, 11 Jan 2023 13:21:01 +0100
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
layouts/_default/single.html
→
layouts/_default/single.html
@@ -3,7 +3,7 @@ <main>
<article> <div class="title"> <h1 class="title">{{ .Title }}</h1> - {{ if .Params.show_date | default "true" }} + {{ if isset .Params "date" }} <div class="meta">Posted on {{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</div> {{ end }} </div>