From 385db81296bccf0c9e4341580d96e6a868f9d7f0 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 5 Jun 2021 17:12:33 +0200 Subject: Some design fixes, page list metadata improvements --- templates/layouts/categorized_list.html | 28 ++++++++++++++-------- templates/layouts/list.html | 41 +++++++++++++++++++++++++++++++++ templates/layouts/page.html | 2 +- 3 files changed, 60 insertions(+), 11 deletions(-) create mode 100644 templates/layouts/list.html (limited to 'templates/layouts') diff --git a/templates/layouts/categorized_list.html b/templates/layouts/categorized_list.html index 6e72194..89bea78 100644 --- a/templates/layouts/categorized_list.html +++ b/templates/layouts/categorized_list.html @@ -7,18 +7,18 @@ $body$
- $for(pages.all)$ + $for(pages.asc_title)$ $if(it.pages)$

$it.title$

- $for(it.pages.all)$ - -
- $it.title$ -
- $if(pages.all.show_dates)$ + $if(pages.asc_title.show_dates)$ + $for(it.pages.desc_date)$ +
+
+ $it.title$ +
- $endif$ -
- $endfor$ + + $endfor$ + $else$ + $for(it.pages.asc_title)$ + +
+ $it.title$ +
+
+ $endfor$ + $endif$
$endif$ $endfor$ diff --git a/templates/layouts/list.html b/templates/layouts/list.html new file mode 100644 index 0000000..1c6398a --- /dev/null +++ b/templates/layouts/list.html @@ -0,0 +1,41 @@ +
+
+ + +
+
+ $if(show_dates)$ + $for(pages.desc_date)$ + +
+ $it.title$ +
+ +
+ $endfor$ + $else$ + $for(pages.asc_title)$ + +
+ $it.title$ +
+
+ $endfor$ + $endif$ +
+
+
+
+ + diff --git a/templates/layouts/page.html b/templates/layouts/page.html index 32ceb98..e5781a8 100644 --- a/templates/layouts/page.html +++ b/templates/layouts/page.html @@ -1,4 +1,4 @@ -
+