From 2dead666540586544c7628022ac71c60e4f27902 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 14 Nov 2021 16:42:53 +0100 Subject: Improved semantic structure --- templates/layouts/categorized_list.html | 38 +++++++++++++++++---------------- templates/layouts/list.html | 4 ++-- templates/layouts/page.html | 4 ++-- templates/layouts/redirect.html | 4 ++-- 4 files changed, 26 insertions(+), 24 deletions(-) (limited to 'templates') diff --git a/templates/layouts/categorized_list.html b/templates/layouts/categorized_list.html index 20c0ee5..adeb762 100644 --- a/templates/layouts/categorized_list.html +++ b/templates/layouts/categorized_list.html @@ -1,27 +1,29 @@ - +
$for(list)$ -
-

- $it.title$ -

- $if(it.content)$ - $it.content$ +
+
+

+ $it.title$ +

+ $if(it.content)$ + $it.content$ + $endif$ +
+ $if(it.grid)$ +
+ $it.items:partials/grid_card()$ +
+ $else$ +
+ $it.items:partials/list_card()$ +
$endif$ -
- $if(it.grid)$ -
- $it.items:partials/grid_card()$ -
- $else$ -
- $it.items:partials/list_card()$ -
- $endif$ + $endfor$
diff --git a/templates/layouts/list.html b/templates/layouts/list.html index ff29314..7eded4a 100644 --- a/templates/layouts/list.html +++ b/templates/layouts/list.html @@ -1,8 +1,8 @@ - +
$if(list_grid)$ diff --git a/templates/layouts/page.html b/templates/layouts/page.html index f6d3b53..e02ad51 100644 --- a/templates/layouts/page.html +++ b/templates/layouts/page.html @@ -1,4 +1,4 @@ -