summaryrefslogtreecommitdiffstats
path: root/templates/layouts/list.html
blob: 208b26764c89a76fdb5fc038beedeba9a654e3b0 (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
<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">
        <div class="c-card-list__category-content$if(list_grid)$ c-card-list__category-content--grid$endif$">
            $for(pages.all)$
                <a href="$it.url.rel$" class="c-card-list__card c-card">
                    $if(show_read_indicators)$
                        <div class="c-card__block c-card__block--indicator"></div>
                    $endif$
                    $if(icon)$
                        <svg class="c-card__block o-icon">
                            <use href="/symbols.svg#icon-$icon$"></use>
                        </svg>
                    $endif$
                    <div class="c-card__block c-card__block--main">
                        $it.title$
                    </div>
                    $if(it.date)$
                        <time datetime="$it.date.yyyy_mm_dd$" class="c-card__block u-fs0">
                            <small class="u-dn@sm-hi">
                                $it.date.short$
                            </small>
                            <small class="u-dn@sm-lo">
                                $it.date.long$
                            </small>
                        </time>
                    $endif$
                </a>
            $endfor$
        </div>
    </div>
</section>