all repos — archie @ d279b93e223083c0aee72c7b66d9c3ae11a2faac

A minimal Hugo Theme

better date handling
Marco Andronaco andronacomarco@gmail.com
Wed, 11 Jan 2023 13:21:01 +0100
commit

d279b93e223083c0aee72c7b66d9c3ae11a2faac

parent

c7a67aa90b8387c8e0065c2c64618dc1119b7834

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

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