summaryrefslogtreecommitdiffstats
path: root/templates/layouts/categorized_list.html
blob: 2f61f18204678d4d138730bcf0c098fb1d8abb43 (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
<header class="s-headlines s-colored-links">
    <h1 class="u-mt0"><span class="s-headlines__title-inner">$title$</span></h1>

$body$
</header>

<div class="l-card-list">
    $for(list)$
        <section>
            <h2 class="s-invisible-links">
                <a href="$it.url.rel$">$it.title$</a>
            </h2>
            $if(it.description)$
                <div class="s-small s-colored-links">$it.description$</div>
            $endif$
            $if(it.layout.is_grid)$
                <div class="l-card-list__cards l-card-list__cards--grid">
                    $it.items:partials/grid_card()$
                </div>
            $elseif(it.layout.is_gallery)$
                <div class="l-card-list__cards l-card-list__cards--gallery">
                    $it.items:partials/gallery_card()$
                </div>
            $else$
                <div class="l-card-list__cards">
                    $it.items:partials/list_card()$
                </div>
            $endif$
            $if(it.omitted)$
                <div class="s-small s-invisible-links">
                    <p>
                        <a href="$it.url.rel$">$it.omitted$ more items →</a>
                    </p>
                </div>
            $endif$
        </section>
    $endfor$
</div>