diff options
| author | Volpeon <git@volpeon.ink> | 2021-01-21 21:31:21 +0100 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2021-01-21 21:31:21 +0100 |
| commit | 1cc072bb0bca2e2a5e88ba05ee9b3ec39ea7eefc (patch) | |
| tree | 1bccea4922f090ce120e83fe75f78010f7e08f05 /templates/layouts/categorized_list.html | |
| parent | Compile drafts in watch/serve mode (diff) | |
| download | volpeon.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/categorized_list.html')
| -rw-r--r-- | templates/layouts/categorized_list.html | 22 |
1 files changed, 22 insertions, 0 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 | |||
