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

$body$
    </div>

    <div class="c-card-list">
        $for(list)$
            <header class="c-card-list__category-header">
                <h2 class="c-card-list__category-title">
                    <a href="$it.url.rel$">$it.title$</a>
                </h2>
                $if(it.content)$
                    <small class="c-card-list__category-subtitle">$it.content$</small>
                $endif$
            </header>
            $if(it.grid)$
                <div class="c-card-list__category-content c-card-list__category-content--grid">
                    $it.items:partials/grid_card()$
                </div>
            $else$
                <div class="c-card-list__category-content">
                    $it.items:partials/list_card()$
                </div>
            $endif$
        $endfor$
    </div>
</section>