Only show the draft tag when a post is a draft and the environment is not production

This commit is contained in:
Eryn Wells 2024-10-31 08:03:32 -07:00
parent f29f409642
commit 86ca411bce

View file

@ -14,7 +14,7 @@
{{- partial "page/date.html" (dict "page" .) -}}
{{- end }}
{{- if not hugo.IsProduction -}}
{{- if and (not hugo.IsProduction) .Draft -}}
{{ partial "page/taxonomy_draft.html" (dict "page" .) }}
{{- end -}}