summaryrefslogtreecommitdiffstats
path: root/templates/layouts
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2021-01-21 21:31:21 +0100
committerVolpeon <git@volpeon.ink>2021-01-21 21:31:21 +0100
commit1cc072bb0bca2e2a5e88ba05ee9b3ec39ea7eefc (patch)
tree1bccea4922f090ce120e83fe75f78010f7e08f05 /templates/layouts
parentCompile drafts in watch/serve mode (diff)
downloadvolpeon.ink-1cc072bb0bca2e2a5e88ba05ee9b3ec39ea7eefc.tar.gz
volpeon.ink-1cc072bb0bca2e2a5e88ba05ee9b3ec39ea7eefc.tar.bz2
volpeon.ink-1cc072bb0bca2e2a5e88ba05ee9b3ec39ea7eefc.zip
Replace blogs with notebooks (i.e. no dates, grouped by category)
Diffstat (limited to 'templates/layouts')
-rw-r--r--templates/layouts/categorized_list.html22
-rw-r--r--templates/layouts/page.html4
2 files changed, 23 insertions, 3 deletions
diff --git a/templates/layouts/categorized_list.html b/templates/layouts/categorized_list.html
new file mode 100644
index 0000000..d213bb8
--- /dev/null
+++ b/templates/layouts/categorized_list.html
@@ -0,0 +1,22 @@
1<main class="c-page s-page l-container l-container--content l-container--pad-v">
2 <div class="c-page__content">
3 <h1 class="c-page__prefixed c-page__prefixed--h1">$title$</h1>
4$body$
5
6 $for(pages.by_category)$
7 <h2 class="c-page__prefixed c-page__prefixed--h2">
8 $for(it.value/first)$
9 $it.category.name$
10 $endfor$
11 </h2>
12 <ul>
13 $for(it.value)$
14 <li class="c-page__prefixed c-page__prefixed--ref">
15 <a href="$it.url.rel$">$it.title$</a>
16 </li>
17 $endfor$
18 </ul>
19 $endfor$
20 </div>
21</main>
22
diff --git a/templates/layouts/page.html b/templates/layouts/page.html
index 61bcacd..640df18 100644
--- a/templates/layouts/page.html
+++ b/templates/layouts/page.html
@@ -13,9 +13,7 @@
13 </div> 13 </div>
14 $endif$ 14 $endif$
15 <h1 class="c-page__prefixed c-page__prefixed--h1 c-page__header__title">$title$</h1> 15 <h1 class="c-page__prefixed c-page__prefixed--h1 c-page__header__title">$title$</h1>
16 $if(date)$ 16 $if(category)$
17 <h2 class="c-page__header__meta">$date.yyyy_mm_dd$$if(category)$ in $category.name$$endif$</h2>
18 $elseif(category)$
19 <h2 class="c-page__header__meta">in $category.name$</h2> 17 <h2 class="c-page__header__meta">in $category.name$</h2>
20 $endif$ 18 $endif$
21 </header> 19 </header>