summaryrefslogtreecommitdiffstats
path: root/templates/layouts/categorized_list.html
blob: 5e923955a6a8ffcf606ab9cc78283bba9878e04e (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
49
50
51
<div class="l-container l-container--pad-x l-container--pad-y l-container--content">        
    <header class="s-headlines s-colored-links">
        <h1 class="u-mt0"><span class="s-headlines__title-inner">$title$</span></h1>

$body$

    </header>

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

    <div class="l-card-list">
        $for(list)$
            <section>
                <h2 class="s-invisible-links" id="$it.slug$">
                    <a href="$it.url.rel$">$it.title$</a>
                </h2>
                $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_gallery)$
                        $it.items:partials/gallery_card()$
                    $else$
                        $it.items:partials/list_card()$
                    $endif$
                    $if(it.omitted)$
                        <a href="$it.url.rel$" class="l-card-list__card c-card">
                            <div class="c-card__row">
                                <div class="c-card__block c-card__block--main">
                                    $it.omitted$ more items in $it.title$
                                </div>
                                <svg class="c-card__block o-icon" width="1em" height="1em" aria-hidden="true">
                                    <use href="/symbols.svg#icon-arrow-right"></use>
                                </svg>
                            </div>
                        </a>
                    $endif$
                </div>
            </section>
        $endfor$
    </div>
</div>