From 8f373e6c6d3f9d322041ba4d949c1b0c39ae8ea0 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 8 Jan 2021 11:45:30 +0100 Subject: Added section link to the header in regular pages, improved template structure, improved CSS variable names, keep prefix for specific page items on mobile --- templates/base.html | 14 +++++--------- templates/layouts/dated_list.html | 37 ++++++++++++++++++++----------------- templates/layouts/index.html | 28 ++++++++++++++++------------ templates/layouts/page.html | 32 ++++++++++++++++++++++---------- 4 files changed, 63 insertions(+), 48 deletions(-) (limited to 'templates') diff --git a/templates/base.html b/templates/base.html index da3dec9..8682125 100644 --- a/templates/base.html +++ b/templates/base.html @@ -36,23 +36,19 @@ -
-
- $if(section.is_index)$ + $if(section.is_index)$ ${layouts/index()} - $elseif(layout.is_dated_list)$ + $elseif(layout.is_dated_list)$ ${layouts/dated_list()} - $else$ + $else$ ${layouts/page()} - $endif$ -
-
+ $endif$ diff --git a/templates/layouts/dated_list.html b/templates/layouts/dated_list.html index 0a279f0..8c5de69 100644 --- a/templates/layouts/dated_list.html +++ b/templates/layouts/dated_list.html @@ -1,22 +1,25 @@ -

$title$

- +
+
+

$title$

$body$ -$if(categories)$ -
    - $for(categories)$ -
  • $it.key/uppercase$ $it.value.name$
  • - $endfor$ -
-$endif$ + $if(categories)$ +
    + $for(categories)$ +
  • $it.key/uppercase$ $it.value.name$
  • + $endfor$ +
+ $endif$ -$for(pages.by_year)$ - -$endfor$ +
+
diff --git a/templates/layouts/index.html b/templates/layouts/index.html index 144d1ed..a1410f1 100644 --- a/templates/layouts/index.html +++ b/templates/layouts/index.html @@ -1,14 +1,16 @@ - $body$ + +