summaryrefslogtreecommitdiffstats
path: root/templates/layouts/categorized_list.html
blob: 1b9b293f87e8d9c768eef64bf5364a607d5898d3 (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
40
41
42
43
44
45
46
47
48
49
50
<section class="l-section l-section--no-head">
    <div 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-post-list">
            $for(pages.asc_title)$
                $if(it.pages)$
                    <h2 class="c-post-list__category-header">
                        <a href="$it.url.rel$">$it.title$</a>
                    </h2>
                    <div class="c-post-list__category-content">
                        $if(pages.asc_title.show_dates)$
                            $for(it.pages.desc_date)$
                                <a href="$it.url.rel$" class="c-post-list__post c-card">
                                    <div class="c-card__block c-card__block--indicator"></div>
                                    <div class="c-card__block c-card__block--main">
                                        $it.title$
                                    </div>
                                    <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>
                                </a>
                            $endfor$
                        $else$
                            $for(it.pages.asc_title)$
                                <a href="$it.url.rel$" class="c-post-list__post c-card">
                                    <div class="c-card__block c-card__block--indicator"></div>
                                    <div class="c-card__block c-card__block--main">
                                        $it.title$
                                    </div>
                                </a>
                            $endfor$
                        $endif$
                    </div>
                $endif$
            $endfor$
        </div>
    </div>
</section>