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:
parent
68618884e8
commit
da64dd30d5
1 changed files with 1 additions and 1 deletions
|
@ -1 +1 @@
|
|||
{{ if and (in (.Site.BaseURL | string) "localhost") .Draft }}<span class="draft">d</span>{{ end }}
|
||||
{{ if .Draft }}<span class="draft">d</span>{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue