templates/text: check if .Meta.draft equals "true"
Anirudh Oppiliappan x@icyphox.sh
Sat, 18 Jan 2025 15:02:22 +0200
2 files changed,
1 insertions(+),
2 deletions(-)
M
pages/blog/identity.md
→
pages/blog/identity.md
@@ -4,7 +4,6 @@ slug: identity
title: atproto and ownership of identity subtitle: The new age of social-enabled apps date: 2025-01-18 -draft: false --- [atproto](https://atproto.com) is very exciting to me as it's the
M
templates/text.html
→
templates/text.html
@@ -20,7 +20,7 @@ {{ $date.Format "02 Jan, 2006" }}
</section> - {{ if .Meta.draft }} + {{ if eq .Meta.draft "true" }} <h1 class="title">{{ index .Meta "title" }} <span class="draft">[draft]</span></h1> {{ else }} <h1 class="title">{{ index .Meta "title" }}</h1>