summaryrefslogtreecommitdiffstats
path: root/templates/partials/gallery_card.html
blob: f724e3b9d9a12b85cc4faa44e0b377b99f3c202a (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
$if(it.url)$
    <a href="$it.url.rel$" class="l-card-list__card c-card">
        $if(it.thumbnail)$
            <div class="c-card__row c-card__row--flush">
                <div class="c-card__thumbnail">
                    <img class="c-card__thumbnail-img" src="$it.thumbnail.rel$" />
                </div>
            </div>
        $endif$
        <div class="c-card__row">
            $if(it.indicator)$
                <div class="c-card__block c-card__block--indicator"></div>
            $endif$
            $if(it.icon)$
                <svg class="c-card__block o-icon" width="1em" height="1em">
                    <use href="/symbols.svg#icon-$it.icon$"></use>
                </svg>
            $endif$
            <div class="c-card__block c-card__block--main">
                $if(it.subtitle)$
                    <strong class="u-db u-elp">$it.title$</strong>
                    <small class="u-db u-elp">$it.subtitle$</small>
                $elseif(it.category)$
                    <small class="u-db u-elp">$it.category$</small>
                    <strong class="u-db u-elp">$it.title$</strong>
                $elseif(it.date)$
                    <time datetime="$it.date.yyyy_mm_dd$">
                        <small class="u-dn@sm-hi">
                            $it.date.short$
                        </small>
                        <small class="u-dn@sm-lo">
                            $it.date.long$
                        </small>
                    </time>
                    <strong class="u-db u-elp">$it.title$</strong>
                $else$
                    $it.title$
                $endif$
            </div>
            $if(it.post_icon)$
                <svg class="c-card__block o-icon" width="1em" height="1em">
                    <use href="/symbols.svg#icon-$it.post_icon$"></use>
                </svg>
            $endif$
        </div>
    </a>
$endif$