diff options
Diffstat (limited to 'templates/layouts/categorized_list.html')
-rw-r--r-- | templates/layouts/categorized_list.html | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/templates/layouts/categorized_list.html b/templates/layouts/categorized_list.html index 52e0d88..68decf6 100644 --- a/templates/layouts/categorized_list.html +++ b/templates/layouts/categorized_list.html | |||
@@ -7,6 +7,7 @@ $body$ | |||
7 | 7 | ||
8 | $if(notoc)$$else$ | 8 | $if(notoc)$$else$ |
9 | <nav class="c-hnav s-invisible-links"> | 9 | <nav class="c-hnav s-invisible-links"> |
10 | <h2 class="u-mt-0">Jump to</h2> | ||
10 | $for(list)$ | 11 | $for(list)$ |
11 | <a class="c-hnav__item" href="#$it.slug$">$it.title$</a> | 12 | <a class="c-hnav__item" href="#$it.slug$">$it.title$</a> |
12 | $endfor$ | 13 | $endfor$ |
@@ -16,21 +17,14 @@ $body$ | |||
16 | <div class="l-card-list"> | 17 | <div class="l-card-list"> |
17 | $for(list)$ | 18 | $for(list)$ |
18 | <section> | 19 | <section> |
19 | <header class="l-card-list__header l-media l-media--flush"> | 20 | <header class="l-card-list__header"> |
20 | <div class="l-media__block l-media__block--main"> | 21 | <h2 class="s-invisible-links u-mt-0" id="$it.slug$"> |
21 | <h2 class="s-invisible-links u-mt-0" id="$it.slug$"> | 22 | <a href="$it.url.rel$">$it.title$</a> |
22 | <a href="$it.url.rel$">$it.title$</a> | 23 | </h2> |
23 | </h2> | 24 | $if(it.description)$ |
24 | </div> | 25 | <div class="s-small s-colored-links">$it.description$</div> |
25 | $if(it.omitted)$ | 26 | $endif$ |
26 | <a class="l-media__block o-badge u-mt-auto" href="$it.url.rel$"> | ||
27 | $it.omitted$ more items <span class="u-ml-10">→</span> | ||
28 | </a> | ||
29 | $endif$ | ||
30 | </header> | 27 | </header> |
31 | $if(it.description)$ | ||
32 | <div class="s-small s-colored-links">$it.description$</div> | ||
33 | $endif$ | ||
34 | <div class="l-card-list__cards l-card-list__cards--$it.layout.id$"> | 28 | <div class="l-card-list__cards l-card-list__cards--$it.layout.id$"> |
35 | $if(it.layout.is_grid)$ | 29 | $if(it.layout.is_grid)$ |
36 | $it.items:partials/grid_card()$ | 30 | $it.items:partials/grid_card()$ |
@@ -42,6 +36,13 @@ $body$ | |||
42 | $it.items:partials/list_card()$ | 36 | $it.items:partials/list_card()$ |
43 | $endif$ | 37 | $endif$ |
44 | </div> | 38 | </div> |
39 | $if(it.omitted)$ | ||
40 | <footer class="l-card-list__footer"> | ||
41 | <a class="l-media__block o-badge" href="$it.url.rel$"> | ||
42 | $it.omitted$ more items <span class="u-ml-10">→</span> | ||
43 | </a> | ||
44 | </footer> | ||
45 | $endif$ | ||
45 | </section> | 46 | </section> |
46 | $endfor$ | 47 | $endfor$ |
47 | </div> | 48 | </div> |