Only show the draft tag when a post is a draft and the environment is not production
This commit is contained in:
parent
f29f409642
commit
86ca411bce
1 changed files with 1 additions and 1 deletions
|
@ -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 -}}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue