summaryrefslogtreecommitdiffstats
path: root/templates/layouts/list.html
blob: 772145f7ea1f760f9ee39aaba6863224f9166f65 (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
<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="c-subheader s-links s-links--colored">
        <h1 class="c-subheader__title p-name" itemprop="name headline">
            $title$.
        </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>