add show_date param
Marco Andronaco andronacomarco@gmail.com
Tue, 10 Jan 2023 19:58:54 +0100
1 files changed,
2 insertions(+),
0 deletions(-)
jump to
M
layouts/_default/single.html
→
layouts/_default/single.html
@@ -3,7 +3,9 @@ <main>
<article> <div class="title"> <h1 class="title">{{ .Title }}</h1> + {{ if .Params.show_date | default "true" }} <div class="meta">Posted on {{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</div> + {{ end }} </div> {{ if isset .Params "tldr" }} <div class="tldr">