aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/meta-draft.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/default/layouts/partials/meta-draft.html')
-rw-r--r--themes/default/layouts/partials/meta-draft.html16
1 files changed, 15 insertions, 1 deletions
diff --git a/themes/default/layouts/partials/meta-draft.html b/themes/default/layouts/partials/meta-draft.html
index 87933a5..d441b9a 100644
--- a/themes/default/layouts/partials/meta-draft.html
+++ b/themes/default/layouts/partials/meta-draft.html
@@ -1 +1,15 @@
-<draft-label><a href="{{ .Site.BaseURL }}/{{ .Type }}/drafts/"><em>Draft</em></a></draft-label>
+{{- if .Draft -}}
+ <meta-draft>
+{{- /* This comment removes trailing newlines and white spaces. */ -}}
+ <em>
+{{- /* This comment removes trailing newlines and white spaces. */ -}}
+ <a href="{{ .Site.BaseURL }}/{{ .Type }}/drafts/#drafts">
+ {{- safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/edit.svg")) -}}
+ <span>Draft</span>
+{{- /* This comment removes trailing newlines and white spaces. */ -}}
+ </a>
+{{- /* This comment removes trailing newlines and white spaces. */ -}}
+ </em>
+{{- /* This comment removes trailing newlines and white spaces. */ -}}
+ </meta-draft>
+{{- end -}}