aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/meta-draft.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-07-09 10:13:53 -0400
committertdro <tdro@noreply.example.com>2022-07-09 10:13:53 -0400
commit8e1256308c9c24fa45783a7c0be7ff74a33906ee (patch)
treeb3c62a2f4eb6bfb0a0ac0c8e7563507a2677df6d /themes/default/layouts/partials/meta-draft.html
parent2b0c90bcf35d2a68a4ac4aabec6e9c04fd6e234f (diff)
downloadcanory-8e1256308c9c24fa45783a7c0be7ff74a33906ee.tar.gz
canory-8e1256308c9c24fa45783a7c0be7ff74a33906ee.tar.bz2
canory-8e1256308c9c24fa45783a7c0be7ff74a33906ee.zip
themes/default/layouts/partials/card-meta: Add icons
Dry up and normalize white spaces.
Diffstat (limited to 'themes/default/layouts/partials/meta-draft.html')
-rw-r--r--themes/default/layouts/partials/meta-draft.html12
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 -}}