From 1cc072bb0bca2e2a5e88ba05ee9b3ec39ea7eefc Mon Sep 17 00:00:00 2001 From: Volpeon Date: Thu, 21 Jan 2021 21:31:21 +0100 Subject: Replace blogs with notebooks (i.e. no dates, grouped by category) --- templates/base.html | 2 ++ templates/layouts/categorized_list.html | 22 ++++++++++++++++++++++ templates/layouts/page.html | 4 +--- 3 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 templates/layouts/categorized_list.html (limited to 'templates') diff --git a/templates/base.html b/templates/base.html index 08c85bb..3afa0f0 100644 --- a/templates/base.html +++ b/templates/base.html @@ -49,6 +49,8 @@ ${layouts/index()} $elseif(layout.is_dated_list)$ ${layouts/dated_list()} + $elseif(layout.is_categorized_list)$ +${layouts/categorized_list()} $else$ ${layouts/page()} $endif$ diff --git a/templates/layouts/categorized_list.html b/templates/layouts/categorized_list.html new file mode 100644 index 0000000..d213bb8 --- /dev/null +++ b/templates/layouts/categorized_list.html @@ -0,0 +1,22 @@ +
+
+

$title$

+$body$ + + $for(pages.by_category)$ +

+ $for(it.value/first)$ + $it.category.name$ + $endfor$ +

+ + $endfor$ +
+
+ diff --git a/templates/layouts/page.html b/templates/layouts/page.html index 61bcacd..640df18 100644 --- a/templates/layouts/page.html +++ b/templates/layouts/page.html @@ -13,9 +13,7 @@ $endif$

$title$

- $if(date)$ -

$date.yyyy_mm_dd$$if(category)$ in $category.name$$endif$

- $elseif(category)$ + $if(category)$

in $category.name$

$endif$ -- cgit v1.2.3-70-g09d2