summaryrefslogtreecommitdiffstats
path: root/templates/layouts/categorized_list.html
blob: 5dddc5589f072f1a2e0b4ddabc00c0a15320428b (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
<section class="l-section l-section--fullscreen 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.by_category)$
                <h2 class="c-post-list__category-header">
                    $it.name$
                </h2>
                $for(it.pages)$
                    <a href="$it.url.rel$" class="c-post-list__post">
                        <span class="c-post-list__post-title">
                            $it.title$
                        </span>

                        $if(it.category.show_date)$
                            <time datetime="$it.date.yyyy_mm_dd$" class="c-post-list__post-date u-dn@sm-hi">
                                $it.date.short$
                            </time>
                            <time datetime="$it.date.yyyy_mm_dd$" class="c-post-list__post-date u-dn@sm-lo">
                                $it.date.long$
                            </time>
                        $endif$
                    </a>
                $endfor$
            $endfor$
        </div>
    </div>
</section>