summaryrefslogtreecommitdiffstats
path: root/templates/layouts/categorized_list.html
blob: 8217fd9099a2d5070dc007133f0ff7eb11bd1995 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<div class="l-container l-container--pad-x l-container--pad-y l-container--narrow">        
    <header class="s-colored-links">
        <h1 class="o-heading o-heading--xxl u-mt-0"><span class="o-heading__primary">$title$</span></h1>

$body$
    </header>

    $if(notoc)$$else$
        <nav class="c-hnav s-invisible-links">
            $for(list)$
                <small><a href="#$it.slug$">$it.title$</a></small>
            $endfor$
        </nav>
    $endif$

    <div class="l-card-list">
        $for(list)$
            <section>
                <header class="l-card-list__header l-media l-media--flush">
                    <div class="l-media__block l-media__block--main">
                        <h2 class="s-invisible-links u-mt-0" id="$it.slug$">
                            <a href="$it.url.rel$">$it.title$</a>
                        </h2>
                    </div>
                    $if(it.omitted)$
                        <a class="l-media__block o-badge u-mt-auto" href="$it.url.rel$">
                            $it.omitted$ more items <span class="u-ml-10">→</span>
                        </a>
                    $endif$
                </header>
                $if(it.description)$
                    <div class="s-small s-colored-links">$it.description$</div>
                $endif$
                <div class="l-card-list__cards l-card-list__cards--$it.layout.id$">
                    $if(it.layout.is_grid)$
                        $it.items:partials/grid_card()$
                    $elseif(it.layout.is_small-gallery)$
                        $it.items:partials/small_gallery_card()$
                    $elseif(it.layout.is_gallery)$
                        $it.items:partials/gallery_card()$
                    $else$
                        $it.items:partials/list_card()$
                    $endif$
                </div>
            </section>
        $endfor$
    </div>
</div>