From 5f4cb1fd8b84e69092ac56a643b1618006f0442c Mon Sep 17 00:00:00 2001 From: Volpeon Date: Thu, 16 Dec 2021 18:29:18 +0100 Subject: Add thumbnails to cards --- templates/partials/gallery_card.html | 47 ++++++++++++++++++++++ templates/partials/grid_card.html | 66 ++++++++++++++++--------------- templates/partials/list_card.html | 76 ++++++++++++++++++------------------ 3 files changed, 120 insertions(+), 69 deletions(-) create mode 100644 templates/partials/gallery_card.html (limited to 'templates/partials') diff --git a/templates/partials/gallery_card.html b/templates/partials/gallery_card.html new file mode 100644 index 0000000..f724e3b --- /dev/null +++ b/templates/partials/gallery_card.html @@ -0,0 +1,47 @@ +$if(it.url)$ + + $if(it.thumbnail)$ +
+
+ +
+
+ $endif$ +
+ $if(it.indicator)$ +
+ $endif$ + $if(it.icon)$ + + + + $endif$ +
+ $if(it.subtitle)$ + $it.title$ + $it.subtitle$ + $elseif(it.category)$ + $it.category$ + $it.title$ + $elseif(it.date)$ + + $it.title$ + $else$ + $it.title$ + $endif$ +
+ $if(it.post_icon)$ + + + + $endif$ +
+
+$endif$ diff --git a/templates/partials/grid_card.html b/templates/partials/grid_card.html index 6f6c16e..25cde52 100644 --- a/templates/partials/grid_card.html +++ b/templates/partials/grid_card.html @@ -1,38 +1,40 @@ $if(it.url)$ - $if(it.indicator)$ -
- $endif$ - $if(it.icon)$ - - - - $endif$ -
- $if(it.subtitle)$ - $it.title$ - $it.subtitle$ - $elseif(it.category)$ - $it.category$ - $it.title$ - $elseif(it.date)$ - - $it.title$ - $else$ - $it.title$ +
+ $if(it.indicator)$ +
+ $endif$ + $if(it.icon)$ + + + + $endif$ +
+ $if(it.subtitle)$ + $it.title$ + $it.subtitle$ + $elseif(it.category)$ + $it.category$ + $it.title$ + $elseif(it.date)$ + + $it.title$ + $else$ + $it.title$ + $endif$ +
+ $if(it.post_icon)$ + + + $endif$
- $if(it.post_icon)$ - - - - $endif$
$endif$ diff --git a/templates/partials/list_card.html b/templates/partials/list_card.html index 73caa05..8244cf5 100644 --- a/templates/partials/list_card.html +++ b/templates/partials/list_card.html @@ -1,42 +1,44 @@ $if(it.url)$ - $if(it.indicator)$ -
- $endif$ - $if(it.icon)$ - - - - $endif$ -
- $it.title$ -
- $if(it.subtitle)$ -
- - $it.subtitle$ - -
- $elseif(it.category)$ -