From 4631bf9fee31289d30d211d59b77b579303d55f6 Mon Sep 17 00:00:00 2001
From: Volpeon <git@volpeon.ink>
Date: Mon, 28 Dec 2020 09:57:02 +0100
Subject: Various small fixes, exclude raw ASCII fox from output

---
 templates/base.html           | 12 ++----------
 templates/pageHeader.html     | 19 +++++++++----------
 templates/pageHeaderSm.html   | 11 +++++------
 templates/pagelistByYear.html | 12 ++++++++++++
 4 files changed, 28 insertions(+), 26 deletions(-)
 create mode 100644 templates/pagelistByYear.html

(limited to 'templates')

diff --git a/templates/base.html b/templates/base.html
index 21ea9a4..8d10d13 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -46,18 +46,10 @@ ${pageHeader()}
                 </header>
             $endif$
 
-            $body$
+$body$
 
             $if(isblog)$
-                $if(pages)$
-                    <ul class="c-refs">
-                        $for(pages)$
-                        <li class="c-refs__item">
-                            <a href="$it.url_rel$">$it.date$ - $it.title$</a>
-                        </li>
-                        $endfor$
-                    </ul>
-                $endif$
+            ${pagelistByYear()}
             $endif$
         </div>
     </main>
diff --git a/templates/pageHeader.html b/templates/pageHeader.html
index 0521c88..40ee251 100644
--- a/templates/pageHeader.html
+++ b/templates/pageHeader.html
@@ -1,13 +1,12 @@
-<!--
-' |      '     '             '     '            '   | |    |           '     '
-  |      '     '             '       //\_       '   | ' .  |           '     '
- .|      '      ____,...,______..,_~``  -`..,   '   |    ' |           '     '
-  |       _,~´"'  ,               .    ,~--´    '  _|  | . |~~.__      '     '
-| |    ,-"    _.-|~/  |..,____,) ,/,,"'         '_( | '    |)    )     '     '
- '|    \__,~"´   /:) /       |:\ \            ,~(    ) . | |  )   `,   '   _,--.
-___\___.___:____(:/\_-,______\:.\_-,____.__\_.\______.__:___\__.___)_.___,/_____
-░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
--->
+$-- ' |      '     '             '     '            '   | |    |           '     '
+$--   |      '     '             '       //\_       '   | ' .  |           '     '
+$--  .|      '      ____,...,______..,_~``  -`..,   '   |    ' |           '     '
+$--   |       _,~´"'  ,               .    ,~--´    '  _|  | . |~~.__      '     '
+$-- | |    ,-"    _.-|~/  |..,____,) ,/,,"'         '_( | '    |)    )     '     '
+$--  '|    \__,~"´   /:) /       |:\ \            ,~(    ) . | |  )   `,   '   _,--.
+$-- ___\___.___:____(:/\_-,______\:.\_-,____.__\_.\______.__:___\__.___)_.___,/_____
+$-- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
+
 <pre class="u-hidden@sm-down">
 ' |      '     '             '     '            '   | |    |           '     '  
   |      '     '             '       <strong>//\_</strong>       '   | ' .  |           '     '  
diff --git a/templates/pageHeaderSm.html b/templates/pageHeaderSm.html
index f9e31ce..c480773 100644
--- a/templates/pageHeaderSm.html
+++ b/templates/pageHeaderSm.html
@@ -1,9 +1,8 @@
-<!--
-.|                     //\__      '  .'      |  . |           ' . ' 
- |      _.~-"""-----~``  ,-´      '   '      |'   |           '   ' 
-'|   .´  ,~'\ ).,__,)/,,"         ' . '      |  | |           '  .' 
- |_  `~´   (/\\,   (/\\,         _'   '_    _| '  |_         _'   '_
--->
+$-- .|                     //\__      '  .'      |  . |           ' . ' 
+$--  |      _.~-"""-----~``  ,-´      '   '      |'   |           '   ' 
+$-- '|   .´  ,~'\ ).,__,)/,,"         ' . '      |  | |           '  .' 
+$--  |_  `~´   (/\\,   (/\\,         _'   '_    _| '  |_         _'   '_
+
 <pre class="$if(ishome)$u-hidden@sm-up$endif$">
 .|   <strong>                  //\__</strong>      '  .'      |  . |           ' . ' 
  |   <strong>   _.~-"""-----~``  ,-´</strong>      '   '      |'   |           '   ' 
diff --git a/templates/pagelistByYear.html b/templates/pagelistByYear.html
new file mode 100644
index 0000000..8270530
--- /dev/null
+++ b/templates/pagelistByYear.html
@@ -0,0 +1,12 @@
+$for(pages)$
+    $for(it.by_year/pairs)$
+        <h2>$it.key$</h2>
+        <ul class="c-refs">
+            $for(it.value)$
+            <li class="c-refs__item">
+                <a href="$it.url_rel$">$it.date$ - $it.title$</a>
+            </li>
+            $endfor$
+        </ul>
+    $endfor$
+$endfor$
-- 
cgit v1.2.3-70-g09d2