summaryrefslogtreecommitdiffstats
path: root/templates/partials
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2020-12-30 11:30:59 +0100
committerVolpeon <git@volpeon.ink>2020-12-30 11:30:59 +0100
commitd90d07fa3938c944fe8897e7ce1d995bd660573d (patch)
treea1c6a331a00ab9fb40104a0f7d828cd66ac6c2e2 /templates/partials
parentFixed finding subpages in some cases, use multiple sorted arrays for categories (diff)
downloadvolpeon.ink-d90d07fa3938c944fe8897e7ce1d995bd660573d.tar.gz
volpeon.ink-d90d07fa3938c944fe8897e7ce1d995bd660573d.tar.bz2
volpeon.ink-d90d07fa3938c944fe8897e7ce1d995bd660573d.zip
Better templates structure, better script config
Diffstat (limited to 'templates/partials')
-rw-r--r--templates/partials/categoriesByCount.html7
-rw-r--r--templates/partials/categoriesById.html7
-rw-r--r--templates/partials/pageHeader.html17
-rw-r--r--templates/partials/pageHeaderSm.html10
-rw-r--r--templates/partials/pagelistByYear.html11
5 files changed, 52 insertions, 0 deletions
diff --git a/templates/partials/categoriesByCount.html b/templates/partials/categoriesByCount.html
new file mode 100644
index 0000000..871e3db
--- /dev/null
+++ b/templates/partials/categoriesByCount.html
@@ -0,0 +1,7 @@
1$if(categories.by_count)$
2 <ul class="c-hlist">
3 $for(categories.by_count)$
4 <li class="c-hlist__item"><strong>$it.key/uppercase$</strong>: $it.value.name$ ($it.value.count$)</li>
5 $endfor$
6 </ul>
7$endif$
diff --git a/templates/partials/categoriesById.html b/templates/partials/categoriesById.html
new file mode 100644
index 0000000..1f4f433
--- /dev/null
+++ b/templates/partials/categoriesById.html
@@ -0,0 +1,7 @@
1$if(categories.by_id)$
2 <ul class="c-hlist">
3 $for(categories.by_id)$
4 <li class="c-hlist__item"><strong>$it.key/uppercase$</strong>: $it.value.name$ ($it.value.count$)</li>
5 $endfor$
6 </ul>
7$endif$
diff --git a/templates/partials/pageHeader.html b/templates/partials/pageHeader.html
new file mode 100644
index 0000000..b44f394
--- /dev/null
+++ b/templates/partials/pageHeader.html
@@ -0,0 +1,17 @@
1$-- ' | ' ' ' ' ' | | | ' '
2$-- | ' ' ' //\_ ' | ' . | ' '
3$-- .| ' ____,...,______..,_~`` -`.., ' | ' | ' '
4$-- | _,~´"' , . ,~--´ ' _| | . |~~.__ ' '
5$-- | | ,-" _.-|~/ |..,____,) ,/,,"' '_( | ' |) ) ' '
6$-- '| \__,~"´ /:) / |:\ \ ,~( ) . | | ) `, ' _,--.
7$-- ___\___.___:____(:/\_-,______\:.\_-,____.__\_.\______.__:___\__.___)_.___,/_____
8$-- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
9
10<pre class="c-page__prefixed c-page__prefixed--pre u-mt0 u-hidden@sm-down">
11' | ' ' ' ' ' | | | ' '
12 | ' ' ' <strong>//\_</strong> ' | ' . | ' '
13 .| ' <strong>____,...,______..,_~`` -`..,</strong> ' | ' | ' '
14 | <strong>_,~´"' , . ,~--´</strong> ' _| | . |~~.__ ' '
15| | <strong>,-" _.-|~/ |..,____,) ,/,,"'</strong> '_( | ' |) ) ' '
16 '| <strong>\__,~"´ /:) / |:\ \</strong> ,~( ) . | | ) `, ' _,--.
17 \ . : <strong>(:/\_-, \:.\_-,</strong> . \ .\ . : \ . ) . ' ,/ </pre>
diff --git a/templates/partials/pageHeaderSm.html b/templates/partials/pageHeaderSm.html
new file mode 100644
index 0000000..4db186c
--- /dev/null
+++ b/templates/partials/pageHeaderSm.html
@@ -0,0 +1,10 @@
1$-- .| //\__ ' .' | . | ' . '
2$-- | _.~-"""-----~`` ,-´ ' ' |' | ' '
3$-- '| .´ ,~'\ ).,__,)/,," ' . ' | | | ' .'
4$-- |_ `~´ (/\\, (/\\, _' '_ _| ' |_ _' '_
5
6<pre class="c-page__prefixed c-page__prefixed--pre u-mt0 $if(is_home)$u-hidden@sm-up$endif$">
7.| <strong> //\__</strong> ' .' | . | ' . '
8 | <strong> _.~-"""-----~`` ,-´</strong> ' ' |' | ' '
9'| <strong>.´ ,~'\ ).,__,)/,," </strong> ' . ' | | | ' .'
10 |_ <strong>`~´ (/\\, (/\\, </strong> _' '_ _| ' |_ _' '_</pre>
diff --git a/templates/partials/pagelistByYear.html b/templates/partials/pagelistByYear.html
new file mode 100644
index 0000000..ff55f0f
--- /dev/null
+++ b/templates/partials/pagelistByYear.html
@@ -0,0 +1,11 @@
1$for(pages)$
2 $for(it.by_year)$
3 <ul>
4 $for(it.value)$
5 <li class="c-page__prefixed c-page__prefixed--ref">
6 <a href="$it.url.rel$">$it.category/uppercase$ $it.date.yyyy_mm_dd$ - $it.title$</a>
7 </li>
8 $endfor$
9 </ul>
10 $endfor$
11$endfor$