summaryrefslogtreecommitdiffstats
path: root/templates/partials/list_card.html
blob: 744ca8a5295ff94b7d1114c63fbb12c5bc737569 (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
51
52
53
54
55
56
57
58
59
60
$if(it.url)$
<a
    href="$it.url.rel$"
    class="l-card-list__card c-card h-entry"
    itemprop="dataFeedElement"
    itemscope
    itemtype="https://schema.org/$it.schema_type$"
    $if(it.rel)$rel="$it.rel$"$endif$
>
    <div class="c-card__row l-media">
        $if(it.indicator)$
            <div class="c-card__indicator l-media__block"></div>
        $endif$
        $if(it.icon)$
            <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true">
                <use href="/icons.svg#$it.icon$"></use>
            </svg>
        $endif$
        <div class="l-media__block l-media__block--main u-d-none@sm-hi">
            $if(it.subtitle)$
                <small class="u-d-block">$it.subtitle$</small>
                <strong class="u-d-block">$it.title$</strong>
            $elseif(it.category)$
                <small class="u-d-block">$it.category$</small>
                <strong class="u-d-block">$it.title$</strong>
            $elseif(it.date)$
                <time datetime="$it.date.yyyy_mm_dd$" class="u-d-block"><small>$it.date.long$</small></time>
                <strong class="u-d-block">$it.title$</strong>
            $else$
                <span class="p-name" itemprop="name headline">
                    $it.title$
                </span>
            $endif$
        </div> 
        <div class="l-media__block l-media__block--main u-d-none@sm-lo">
            $it.title$
        </div> 
        $if(it.subtitle)$
            <small class="l-media__block u-d-none@sm-lo">
                $it.subtitle$
            </small>
        $elseif(it.category)$
            <small class="l-media__block u-d-none@sm-lo">
                $it.category$
            </small>
        $elseif(it.date)$
            <time datetime="$it.date.yyyy_mm_dd$" class="l-media__block u-d-none@sm-lo" itemprop="dateCreated">
                <small>
                    $it.date.long$
                </small>
            </time>
        $endif$
        $if(it.post_icon)$
            <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true">
                <use href="/icons.svg#$it.post_icon$"></use>
            </svg>
        $endif$
    </div>
</a>
$endif$