From 20c5ad5a7a737d721cb39b75852a79f20502da74 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 31 Jul 2022 10:00:03 +0200 Subject: Simplified "list" list layout code --- templates/partials/gallery_card.html | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) (limited to 'templates/partials/gallery_card.html') diff --git a/templates/partials/gallery_card.html b/templates/partials/gallery_card.html index a340148..4728461 100644 --- a/templates/partials/gallery_card.html +++ b/templates/partials/gallery_card.html @@ -1,11 +1,12 @@ -$if(it.thumbnail)$ @@ -32,14 +33,24 @@ $if(it.thumbnail)$ $if(it.subtitle)$
$it.title$ - $if(it.draft)$Draft$endif$ + $if(it.draft)$ + Draft + $endif$
- $it.subtitle$ + + $it.subtitle$ + $elseif(it.category)$ - $it.category$ + + $it.category$ +
- $it.title$ - $if(it.draft)$Draft$endif$ + + $it.title$ + + $if(it.draft)$ + Draft + $endif$
$elseif(it.show_date)$ @@ -49,13 +60,17 @@ $if(it.thumbnail)$
$it.title$ - $if(it.draft)$Draft$endif$ + $if(it.draft)$ + Draft + $endif$
$else$ $it.title$ - $if(it.draft)$Draft$endif$ + $if(it.draft)$ + Draft + $endif$ $endif$ $if(it.post_icon)$ @@ -65,4 +80,3 @@ $if(it.thumbnail)$ $endif$
-$endif$ -- cgit v1.2.3-70-g09d2