diff options
author | Volpeon <git@volpeon.ink> | 2021-01-08 11:45:30 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2021-01-08 11:45:30 +0100 |
commit | 8f373e6c6d3f9d322041ba4d949c1b0c39ae8ea0 (patch) | |
tree | 3e4bd8c26b65a073d4580bc9f0076caceb234ce8 /templates/layouts/dated_list.html | |
parent | Optimized CSS for code blocks (diff) | |
download | volpeon.ink-8f373e6c6d3f9d322041ba4d949c1b0c39ae8ea0.tar.gz volpeon.ink-8f373e6c6d3f9d322041ba4d949c1b0c39ae8ea0.tar.bz2 volpeon.ink-8f373e6c6d3f9d322041ba4d949c1b0c39ae8ea0.zip |
Added section link to the header in regular pages, improved template structure, improved CSS variable names, keep prefix for specific page items on mobile
Diffstat (limited to 'templates/layouts/dated_list.html')
-rw-r--r-- | templates/layouts/dated_list.html | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/templates/layouts/dated_list.html b/templates/layouts/dated_list.html index 0a279f0..8c5de69 100644 --- a/templates/layouts/dated_list.html +++ b/templates/layouts/dated_list.html | |||
@@ -1,22 +1,25 @@ | |||
1 | <h1 class="c-page__prefixed c-page__prefixed--h1">$title$</h1> | 1 | <main class="c-page s-page l-container l-container--content l-container--pad-v"> |
2 | 2 | <div class="c-page__content"> | |
3 | <h1 class="c-page__prefixed c-page__prefixed--h1">$title$</h1> | ||
3 | $body$ | 4 | $body$ |
4 | 5 | ||
5 | $if(categories)$ | 6 | $if(categories)$ |
6 | <ul class="c-hlist"> | 7 | <ul class="c-hlist"> |
7 | $for(categories)$ | 8 | $for(categories)$ |
8 | <li class="c-hlist__item"><strong>$it.key/uppercase$</strong> $it.value.name$</li> | 9 | <li class="c-hlist__item"><strong>$it.key/uppercase$</strong> $it.value.name$</li> |
9 | $endfor$ | 10 | $endfor$ |
10 | </ul> | 11 | </ul> |
11 | $endif$ | 12 | $endif$ |
12 | 13 | ||
13 | $for(pages.by_year)$ | 14 | $for(pages.by_year)$ |
14 | <ul> | 15 | <ul> |
15 | $for(it.value)$ | 16 | $for(it.value)$ |
16 | <li class="c-page__prefixed c-page__prefixed--ref"> | 17 | <li class="c-page__prefixed c-page__prefixed--ref"> |
17 | <a href="$it.url.rel$">$it.category.id/uppercase$ $it.date.yyyy_mm_dd$ - $it.title$</a> | 18 | <a href="$it.url.rel$">$it.category.id/uppercase$ $it.date.yyyy_mm_dd$ - $it.title$</a> |
18 | </li> | 19 | </li> |
20 | $endfor$ | ||
21 | </ul> | ||
19 | $endfor$ | 22 | $endfor$ |
20 | </ul> | 23 | </div> |
21 | $endfor$ | 24 | </main> |
22 | 25 | ||