From 7072a79f71e4eb2235f34be7ba5a6fc091cfb750 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sat, 4 Sep 2021 12:03:12 +0530 Subject: [PATCH] Refine `[draft]` tag display --- assets/css/common/post-entry.css | 4 ---- layouts/_default/archives.html | 2 +- layouts/_default/list.html | 2 +- layouts/_default/single.html | 2 +- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/assets/css/common/post-entry.css b/assets/css/common/post-entry.css index 1ed117b3..885aa2a4 100644 --- a/assets/css/common/post-entry.css +++ b/assets/css/common/post-entry.css @@ -86,10 +86,6 @@ color: var(--secondary); } -.entry-isdraft { - display: inline; -} - .entry-cover { margin-bottom: var(--gap); text-align: center; diff --git a/layouts/_default/archives.html b/layouts/_default/archives.html index 1ccfb023..435d2a1e 100644 --- a/layouts/_default/archives.html +++ b/layouts/_default/archives.html @@ -30,7 +30,7 @@

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

{{- partial "post_meta.html" . -}} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 57f9ad37..0cc1ad9e 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -54,7 +54,7 @@

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

{{- if (ne (.Param "hideSummary") true) }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 8d42cd75..355697e2 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -5,7 +5,7 @@ {{ partial "breadcrumbs.html" . }}

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

{{- if .Description }}