summaryrefslogtreecommitdiffstats
path: root/templates
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
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')
-rw-r--r--templates/base.html13
-rw-r--r--templates/feed.xml1
-rw-r--r--templates/list.html4
-rw-r--r--templates/page.html1
-rw-r--r--templates/partials/categoriesByCount.html (renamed from templates/categoriesByCount.html)0
-rw-r--r--templates/partials/categoriesById.html (renamed from templates/categoriesById.html)0
-rw-r--r--templates/partials/pageHeader.html (renamed from templates/pageHeader.html)0
-rw-r--r--templates/partials/pageHeaderSm.html (renamed from templates/pageHeaderSm.html)0
-rw-r--r--templates/partials/pagelistByYear.html (renamed from templates/pagelistByYear.html)0
9 files changed, 12 insertions, 7 deletions
diff --git a/templates/base.html b/templates/base.html
index 48d7c72..76dd0ba 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -45,22 +45,21 @@
45 <div class="c-page__content"> 45 <div class="c-page__content">
46 $if(is_home)$ 46 $if(is_home)$
47 <header class="c-page-header u-hidden@sm-down" role="presentation"> 47 <header class="c-page-header u-hidden@sm-down" role="presentation">
48${pageHeader()} 48${partials/pageHeader()}
49 </header> 49 </header>
50 $endif$ 50 $endif$
51 51
52$body$ 52 $if(pages)$
53 53${list()}
54 $if(section.is_blog)$ 54 $else$
55 ${categoriesById()} 55${page()}
56 ${pagelistByYear()}
57 $endif$ 56 $endif$
58 </div> 57 </div>
59 </main> 58 </main>
60 59
61 $if(is_home)$ 60 $if(is_home)$
62 <template id="header-sm"> 61 <template id="header-sm">
63${pageHeaderSm()} 62${partials/pageHeaderSm()}
64 </template> 63 </template>
65 64
66 <script> 65 <script>
diff --git a/templates/feed.xml b/templates/feed.xml
index f1439eb..d760b04 100644
--- a/templates/feed.xml
+++ b/templates/feed.xml
@@ -42,6 +42,7 @@
42 <link href="$it.url.full$"/> 42 <link href="$it.url.full$"/>
43 <published>$it.date.rfc3339$</published> 43 <published>$it.date.rfc3339$</published>
44 <updated>$it.date.rfc3339$</updated> 44 <updated>$it.date.rfc3339$</updated>
45 $-- <content>$it.plain$</content>
45 </entry> 46 </entry>
46 $endif$ 47 $endif$
47 $endfor$ 48 $endfor$
diff --git a/templates/list.html b/templates/list.html
new file mode 100644
index 0000000..3522754
--- /dev/null
+++ b/templates/list.html
@@ -0,0 +1,4 @@
1$body$
2
3${partials/categoriesById()}
4${partials/pagelistByYear()}
diff --git a/templates/page.html b/templates/page.html
new file mode 100644
index 0000000..36d66c2
--- /dev/null
+++ b/templates/page.html
@@ -0,0 +1 @@
$body$
diff --git a/templates/categoriesByCount.html b/templates/partials/categoriesByCount.html
index 871e3db..871e3db 100644
--- a/templates/categoriesByCount.html
+++ b/templates/partials/categoriesByCount.html
diff --git a/templates/categoriesById.html b/templates/partials/categoriesById.html
index 1f4f433..1f4f433 100644
--- a/templates/categoriesById.html
+++ b/templates/partials/categoriesById.html
diff --git a/templates/pageHeader.html b/templates/partials/pageHeader.html
index b44f394..b44f394 100644
--- a/templates/pageHeader.html
+++ b/templates/partials/pageHeader.html
diff --git a/templates/pageHeaderSm.html b/templates/partials/pageHeaderSm.html
index 4db186c..4db186c 100644
--- a/templates/pageHeaderSm.html
+++ b/templates/partials/pageHeaderSm.html
diff --git a/templates/pagelistByYear.html b/templates/partials/pagelistByYear.html
index ff55f0f..ff55f0f 100644
--- a/templates/pagelistByYear.html
+++ b/templates/partials/pagelistByYear.html