From ab5e589a8559eda788a619bf76d67b40d6b8db55 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Thu, 28 Jul 2022 11:30:55 +0200 Subject: Improved draft badge --- templates/partials/grid_card.html | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'templates/partials/grid_card.html') diff --git a/templates/partials/grid_card.html b/templates/partials/grid_card.html index 8b65320..ab6dbbc 100644 --- a/templates/partials/grid_card.html +++ b/templates/partials/grid_card.html @@ -1,4 +1,3 @@ -$if(it.url)$ $endif$
- $if(it.draft)$ - $it.title$ -
Draft
- $elseif(it.subtitle)$ - $it.title$ + $if(it.subtitle)$ +
+ $it.title$ + $if(it.draft)$Draft$endif$ +
$it.subtitle$ $elseif(it.category)$ $it.category$ - $it.title$ +
+ $it.title$ + $if(it.draft)$Draft$endif$ +
$elseif(it.show_date)$ - $it.title$ +
+ $it.title$ + $if(it.draft)$Draft$endif$ +
$else$ $it.title$ + $if(it.draft)$Draft$endif$ $endif$
$if(it.post_icon)$ @@ -46,4 +52,3 @@ $if(it.url)$ $endif$
-$endif$ -- cgit v1.2.3-70-g09d2