From 80716c79a7db19d6d95070125e1af7946a9849ec Mon Sep 17 00:00:00 2001 From: Volpeon Date: Tue, 28 Dec 2021 21:18:02 +0100 Subject: Support for more complex layouts --- templates/layouts/categorized_list.html | 68 +++++++++++++++++---------------- templates/layouts/gallery.html | 11 ++++++ templates/layouts/list.html | 28 +++++++------- templates/layouts/page.html | 2 +- templates/layouts/redirect.html | 2 +- 5 files changed, 62 insertions(+), 49 deletions(-) create mode 100644 templates/layouts/gallery.html (limited to 'templates/layouts') diff --git a/templates/layouts/categorized_list.html b/templates/layouts/categorized_list.html index fd21017..76b8af1 100644 --- a/templates/layouts/categorized_list.html +++ b/templates/layouts/categorized_list.html @@ -1,39 +1,41 @@ - -
- $for(list)$ -
- - $if(it.description)$ - - $endif$ -
- $if(it.layout.is_grid)$ - $it.items:partials/grid_card()$ - $elseif(it.layout.is_gallery)$ - $it.items:partials/gallery_card()$ - $else$ - $it.items:partials/list_card()$ + +
+ $endfor$ +
diff --git a/templates/layouts/gallery.html b/templates/layouts/gallery.html new file mode 100644 index 0000000..46c47a6 --- /dev/null +++ b/templates/layouts/gallery.html @@ -0,0 +1,11 @@ + diff --git a/templates/layouts/list.html b/templates/layouts/list.html index 40d85f0..bc12805 100644 --- a/templates/layouts/list.html +++ b/templates/layouts/list.html @@ -1,19 +1,19 @@ - -
-
- $if(list_layout.is_grid)$ - $list:partials/grid_card()$ - $elseif(list_layout.is_gallery)$ - $list:partials/gallery_card()$ - $else$ - $list:partials/list_card()$ - $endif$ +
+
+ $if(list_layout.is_grid)$ + $list:partials/grid_card()$ + $elseif(list_layout.is_gallery)$ + $list:partials/gallery_card()$ + $else$ + $list:partials/list_card()$ + $endif$ +
- - diff --git a/templates/layouts/page.html b/templates/layouts/page.html index 46c47a6..e4078cc 100644 --- a/templates/layouts/page.html +++ b/templates/layouts/page.html @@ -1,4 +1,4 @@ -