update layouts: draft tag; remove redundant code

This commit is contained in:
loikein 2023-05-25 12:03:42 +01:00
commit 46406fda64
5 changed files with 21 additions and 25 deletions
layouts/partials

View file

@ -1,6 +1,6 @@
<section>
<h1 class="content-title">
{{- .Title -}}{{- if .Draft -}} :: Draft {{- end -}}
{{- .Title -}}{{- if .Draft -}}&nbsp;:: Draft{{- end -}}
</h1>
{{- if .Params.subtitle -}}
<p class=subtitle>{{ .Params.subtitle }}</p>