From d005d7d2bb6a710b8671de463de3372c68399ee7 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 24 Jul 2020 20:46:33 +0530 Subject: [PATCH] add [draft] mark - to identify drafts from other posts --- assets/css/post-entry.css | 8 +++++++- layouts/_default/index.html | 5 ++++- layouts/_default/list.html | 5 ++++- layouts/_default/single.html | 5 ++++- 4 files changed, 19 insertions(+), 4 deletions(-) diff --git a/assets/css/post-entry.css b/assets/css/post-entry.css index 96453822..9d5e0795 100644 --- a/assets/css/post-entry.css +++ b/assets/css/post-entry.css @@ -76,4 +76,10 @@ right: 0; top: 0; bottom: 0; -} \ No newline at end of file +} + +.entry-isdraft { + display: inline; + color: var(--secondary); + font-size: 14px; +} diff --git a/layouts/_default/index.html b/layouts/_default/index.html index 938fbee8..186a0495 100644 --- a/layouts/_default/index.html +++ b/layouts/_default/index.html @@ -22,7 +22,10 @@ {{- end }}
-

{{ .Title }}

+

+ {{ .Title }} +
{{- if .Draft }}[draft]{{- end }}
+

{{ .Summary | plainify | htmlUnescape }}...

diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 969f98b6..1ee7ce9e 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -14,7 +14,10 @@ {{- end }}
-

{{ .Title }}

+

+ {{ .Title }} +
{{- if .Draft }}[draft]{{- end }}
+

{{ .Summary | plainify | htmlUnescape }}...

diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 842fa318..2b9ecc7a 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,7 +2,10 @@
-

{{ .Title }}

+

+ {{ .Title }} +
{{- if .Draft }}[draft]{{- end }}
+