diff options
Diffstat (limited to 'themes/default/layouts/partials/meta-draft.html')
-rw-r--r-- | themes/default/layouts/partials/meta-draft.html | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/themes/default/layouts/partials/meta-draft.html b/themes/default/layouts/partials/meta-draft.html index 87933a5..7a8aacb 100644 --- a/themes/default/layouts/partials/meta-draft.html +++ b/themes/default/layouts/partials/meta-draft.html @@ -1 +1,11 @@ -<draft-label><a href="{{ .Site.BaseURL }}/{{ .Type }}/drafts/"><em>Draft</em></a></draft-label> +{{- if .Draft -}} + <micro-metadata-draft> +{{- /* This comment removes trailing newlines and white spaces. */ -}} + <em> + {{- safeHTML (readFile (print (partial "function-paths-static.html") "/icons/feather/edit.svg")) -}} + <a href="{{ .Site.BaseURL }}/{{ .Type }}/drafts/">Draft</a> +{{- /* This comment removes trailing newlines and white spaces. */ -}} + </em> +{{- /* This comment removes trailing newlines and white spaces. */ -}} + </micro-metadata-draft> +{{- end -}} |