Simplify the draft tag partial

I do not publish drafts to production, so we do not need to check if
the page is being served from localhost in the template.
This commit is contained in:
Eryn Wells 2023-07-14 08:08:53 -07:00
parent 68618884e8
commit da64dd30d5

View file

@ -1 +1 @@
{{ if and (in (.Site.BaseURL | string) "localhost") .Draft }}<span class="draft">d</span>{{ end }}
{{ if .Draft }}<span class="draft">d</span>{{ end }}