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/base.html | 14 +++---- 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 +- 6 files changed, 69 insertions(+), 56 deletions(-) create mode 100644 templates/layouts/gallery.html (limited to 'templates') diff --git a/templates/base.html b/templates/base.html index c1e1f4f..252069a 100644 --- a/templates/base.html +++ b/templates/base.html @@ -63,17 +63,17 @@
-
- $if(layout.is_categorized_list)$ + $if(layout.is_categorized_list)$ ${layouts/categorized_list()} - $elseif(layout.is_list)$ + $elseif(layout.is_list)$ ${layouts/list()} - $elseif(layout.is_redirect)$ + $elseif(layout.is_redirect)$ ${layouts/redirect()} - $else$ + $elseif(layout.is_gallery)$ +${layouts/gallery()} + $else$ ${layouts/page()} - $endif$ -
+ $endif$