From ad478954cf77842364d03e1d5ee85e366e699ee7 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Thu, 7 Jan 2021 08:50:48 +0100 Subject: Improved general structure, resolve category name in metadata filter, added hideable nav items, added header for page layout --- templates/base.html | 27 ++++------------------ templates/layouts/dated_list.html | 22 ++++++++++++++++++ templates/layouts/index.html | 44 ++++++++++++++++++++++++++++++++++++ templates/layouts/page.html | 12 ++++++++++ templates/list.html | 20 ---------------- templates/page.html | 1 - templates/partials/pageHeader.html | 17 -------------- templates/partials/pageHeaderSm.html | 10 -------- 8 files changed, 82 insertions(+), 71 deletions(-) create mode 100644 templates/layouts/dated_list.html create mode 100644 templates/layouts/index.html create mode 100644 templates/layouts/page.html delete mode 100644 templates/list.html delete mode 100644 templates/page.html delete mode 100644 templates/partials/pageHeader.html delete mode 100644 templates/partials/pageHeaderSm.html (limited to 'templates') diff --git a/templates/base.html b/templates/base.html index b4a2953..da3dec9 100644 --- a/templates/base.html +++ b/templates/base.html @@ -45,33 +45,14 @@
$if(section.is_index)$ - - -${page()} - $elseif(pages)$ -${list()} +${layouts/index()} + $elseif(layout.is_dated_list)$ +${layouts/dated_list()} $else$ -${page()} +${layouts/page()} $endif$
- - $if(section.is_index)$ - - - - $endif$ diff --git a/templates/layouts/dated_list.html b/templates/layouts/dated_list.html new file mode 100644 index 0000000..0a279f0 --- /dev/null +++ b/templates/layouts/dated_list.html @@ -0,0 +1,22 @@ +

$title$

+ +$body$ + +$if(categories)$ + +$endif$ + +$for(pages.by_year)$ + +$endfor$ + diff --git a/templates/layouts/index.html b/templates/layouts/index.html new file mode 100644 index 0000000..144d1ed --- /dev/null +++ b/templates/layouts/index.html @@ -0,0 +1,44 @@ + + +$body$ + + + + diff --git a/templates/layouts/page.html b/templates/layouts/page.html new file mode 100644 index 0000000..332a846 --- /dev/null +++ b/templates/layouts/page.html @@ -0,0 +1,12 @@ +
+

$title$

+ $if(date)$ +

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

+ $elseif(category)$ +

in $category.name$

+ $endif$ +
+ +
+$body$ +
diff --git a/templates/list.html b/templates/list.html deleted file mode 100644 index d74681c..0000000 --- a/templates/list.html +++ /dev/null @@ -1,20 +0,0 @@ -$body$ - -$if(categories)$ - -$endif$ - -$for(pages.by_year)$ - -$endfor$ - diff --git a/templates/page.html b/templates/page.html deleted file mode 100644 index 36d66c2..0000000 --- a/templates/page.html +++ /dev/null @@ -1 +0,0 @@ -$body$ diff --git a/templates/partials/pageHeader.html b/templates/partials/pageHeader.html deleted file mode 100644 index 95e55f7..0000000 --- a/templates/partials/pageHeader.html +++ /dev/null @@ -1,17 +0,0 @@ -$-- ' | ' ' ' ' ' | | | ' ' -$-- | ' ' ' //\_ ' | ' . | ' ' -$-- .| ' ____,...,______..,_~`` -`.., ' | ' | ' ' -$-- | _,~´"' , . ,~--´ ' _| | . |~~.__ ' ' -$-- | | ,-" _.-|~/ |..,____,) ,/,,"' '_( | ' |) ) ' ' -$-- '| \__,~"´ /:) / |:\ \ ,~( ) . | | ) `, ' _,--. -$-- ___\___.___:____(:/\_-,______\:.\_-,____.__\_.\______.__:___\__.___)_.___,/_____ -$-- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ - -
-' |      '     '             '     '            '   | |    |           '     '  
-  |      '     '             '       //\_       '   | ' .  |           '     '  
- .|      '      ____,...,______..,_~``  -`..,   '   |    ' |           '     '  
-  |       _,~´"'  ,               .    ,~--´    '  _|  | . |~~.__      '     '  
-| |    ,-"    _.-|~/  |..,____,) ,/,,"'         '_( | '    |)    )     '     '  
- '|    \__,~"´   /:) /       |:\ \            ,~(    ) . | |  )   `,   '   _,--.
-   \   .   :    (:/\_-,      \:.\_-,    .  \ .\      .  :   \  .   ) . ' ,/     
diff --git a/templates/partials/pageHeaderSm.html b/templates/partials/pageHeaderSm.html deleted file mode 100644 index 92359fa..0000000 --- a/templates/partials/pageHeaderSm.html +++ /dev/null @@ -1,10 +0,0 @@ -$-- .| //\__ ' .' | . | ' . ' -$-- | _.~-"""-----~`` ,-´ ' ' |' | ' ' -$-- '| .´ ,~'\ ).,__,)/,," ' . ' | | | ' .' -$-- |_ `~´ (/\\, (/\\, _' '_ _| ' |_ _' '_ - -
-.|                     //\__      '  .'      |  . |           ' . ' 
- |      _.~-"""-----~``  ,-´      '   '      |'   |           '   ' 
-'|   .´  ,~'\ ).,__,)/,,"         ' . '      |  | |           '  .' 
- |_  `~´   (/\\,   (/\\,         _'   '_    _| '  |_         _'   '_
-- cgit v1.2.3-70-g09d2