summaryrefslogtreecommitdiffstats
path: root/templates/layouts/list.html
blob: cf54c4b422da417c5da1ec6b9c441b9de01a9b6b (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
<main
    class="c-main l-container l-container--pad-x l-container--pad-y l-container--narrow-125 h-feed"
    itemprop="mainPart"
    itemscope
    itemtype="https://schema.org/DataFeed"
    itemid="$url.full$"
>
    <header class="s-colored-links">
        <h1 class="o-heading o-heading--xxl u-mt-0 p-name" itemprop="name headline">
            <span class="o-heading__primary">$title$</span>
        </h1>

$body$
    </header>

    <div class="l-card-list">
        <div class="l-card-list__cards l-card-list__cards--$list_layout.id$">
            $if(list_layout.is_grid-2)$
                $list:partials/grid_card()$
            $elseif(list_layout.is_grid-3)$
                $list:partials/grid_card()$
            $elseif(list_layout.is_gallery-2)$
                $list:partials/gallery_card()$
            $elseif(list_layout.is_gallery-3)$
                $list:partials/gallery_card()$
            $else$
                <div class="u-d-contents u-d-none@sm-lo">
                    $list:partials/list_card()$
                </div>
                <div class="u-d-contents u-d-none@sm-hi">
                    $list:partials/grid_card()$
                </div>
            $endif$
        </div>
    </div>
</main>