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/layouts/categorized_list.html | 9 +++- templates/layouts/list.html | 4 ++ templates/partials/gallery_card.html | 47 ++++++++++++++++++++ templates/partials/grid_card.html | 66 ++++++++++++++-------------- templates/partials/list_card.html | 76 +++++++++++++++++---------------- 5 files changed, 132 insertions(+), 70 deletions(-) create mode 100644 templates/partials/gallery_card.html (limited to 'templates') diff --git a/templates/layouts/categorized_list.html b/templates/layouts/categorized_list.html index 73e75f3..7bbfd8c 100644 --- a/templates/layouts/categorized_list.html +++ b/templates/layouts/categorized_list.html @@ -8,7 +8,10 @@ $body$ $for(list)$
$if(it.description)$ @@ -17,6 +20,10 @@ $body$
$it.items:partials/grid_card()$
+ $elseif(it.layout.is_gallery)$ + $else$
$it.items:partials/list_card()$ diff --git a/templates/layouts/list.html b/templates/layouts/list.html index 32aa35a..9c6b26e 100644 --- a/templates/layouts/list.html +++ b/templates/layouts/list.html @@ -9,6 +9,10 @@ $body$
$list:partials/grid_card()$
+ $elseif(list_layout.is_gallery)$ + $else$
$list:partials/list_card()$ 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$ -