Collapse nested if in draft tag into a single if

This commit is contained in:
Eryn Wells 2023-02-03 16:06:22 -08:00
parent b20da51037
commit d524a7dd9e

View file

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