From e6459b8d70ade0c5b0121537504a92570af944a0 Mon Sep 17 00:00:00 2001 From: Stefan Brand Date: Tue, 8 Feb 2022 20:46:31 +0100 Subject: [PATCH] Hide Tag Bar If There Are No Tags --- css/style.css | 4 ++++ tpl/single.html | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/css/style.css b/css/style.css index 98e44c9..5615a8d 100644 --- a/css/style.css +++ b/css/style.css @@ -139,6 +139,10 @@ body { grid-template-rows: repeat(2, 1fr); } +.content-single.notags { + bottom: 0 !important; +} + .content-single .single-image { grid-column: 1 / 4; grid-row: 1 / 3; diff --git a/tpl/single.html b/tpl/single.html index dd5f4fd..401f5fe 100644 --- a/tpl/single.html +++ b/tpl/single.html @@ -5,7 +5,11 @@ {% block content %}
+ {% if(!empty($tags)): %}
+ {% else: %} +
+ {% endif %}
@@ -23,12 +27,12 @@ {% endif %}
+ {% if(!empty($tags)): %} + {% endif %}
{% endblock %}