all repos — archie @ c7a67aa90b8387c8e0065c2c64618dc1119b7834

A minimal Hugo Theme

add show_date param
Marco Andronaco andronacomarco@gmail.com
Tue, 10 Jan 2023 19:58:54 +0100
commit

c7a67aa90b8387c8e0065c2c64618dc1119b7834

parent

3fa25abce4417d117fa2c1c858616257a389b6b8

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M layouts/_default/single.htmllayouts/_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">