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/grid_card.html | 40 +++++++++++++++++++++++++++++---------- 1 file changed, 30 insertions(+), 10 deletions(-) (limited to 'templates/partials/grid_card.html') diff --git a/templates/partials/grid_card.html b/templates/partials/grid_card.html index 170f478..9a0b06e 100644 --- a/templates/partials/grid_card.html +++ b/templates/partials/grid_card.html @@ -4,7 +4,9 @@ itemprop="dataFeedElement" itemscope itemtype="https://schema.org/$it.schema_type$" - $if(it.rel)$rel="$it.rel$"$endif$ + $if(it.rel)$ + rel="$it.rel$" + $endif$ >
$if(it.indicator)$ @@ -18,15 +20,27 @@
$if(it.subtitle)$
- $it.title$ - $if(it.draft)$Draft$endif$ + + $it.title$ + + $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)$ @@ -35,14 +49,20 @@
- $it.title$ - $if(it.draft)$Draft$endif$ + + $it.title$ + + $if(it.draft)$ + Draft + $endif$
$else$ $it.title$ - $if(it.draft)$Draft$endif$ + $if(it.draft)$ + Draft + $endif$ $endif$
$if(it.post_icon)$ -- cgit v1.2.3-70-g09d2