From dc022d066123b75411729492f0a86b643677dfe3 Mon Sep 17 00:00:00 2001 From: jimmyff Date: Thu, 6 Jul 2023 19:13:09 +0100 Subject: [PATCH] Minor update to how drafts posts are labeled --- sass/blog.scss | 2 ++ templates/base.html | 5 ++--- templates/posts.html | 2 +- templates/taxonomy_single.html | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/sass/blog.scss b/sass/blog.scss index 0214444..bff1ed3 100644 --- a/sass/blog.scss +++ b/sass/blog.scss @@ -98,6 +98,8 @@ color: var(--red); font-weight: bold; font-size: 1rem; + margin-left: 0.5rem; + display: inline-block; } .tags { diff --git a/templates/base.html b/templates/base.html index 82f726f..5f95d11 100644 --- a/templates/base.html +++ b/templates/base.html @@ -137,8 +137,7 @@ - {% block body_end %} - {% endblock %} + {% block body_end -%} + {% endblock body_end -%} - \ No newline at end of file diff --git a/templates/posts.html b/templates/posts.html index e70903f..aa4dbaf 100644 --- a/templates/posts.html +++ b/templates/posts.html @@ -18,7 +18,7 @@
{{ post.title }} - {% if post.draft %}Draft{% endif %} + {% if post.draft %}(Draft){% endif %}
{{ hooks::posts_below_title(page=post) }}
diff --git a/templates/taxonomy_single.html b/templates/taxonomy_single.html index 47aaf52..25e9003 100644 --- a/templates/taxonomy_single.html +++ b/templates/taxonomy_single.html @@ -18,7 +18,7 @@
{{ post.title }} - {% if post.draft %}Draft{% endif %} + {% if post.draft %}(Draft){% endif %}
{{ hooks::posts_below_title(page=post) }}