Use .Draft instead of .IsDraft -- the latter is deprecated now

This commit is contained in:
Eryn Wells 2021-12-27 10:25:42 -07:00
parent ab7c6df152
commit 68e2f6e0ac

View file

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