summaryrefslogtreecommitdiffstats
path: root/templates/partials/small_gallery_card.html
blob: 921d6124df924cbcfae9595d903aff355b54766a (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
$if(it.url)$
$if(it.thumbnail)$
    <a href="$it.url.rel$" class="l-card-list__card c-card">
        <div class="c-card__row l-media l-media--flush">
            <div class="c-card__thumbnail">
                <img
                    class="c-card__thumbnail-img"
                    src="$it.thumbnail.rel$"
                    alt="Preview thumbnail of &quot;$it.title$&quot;"
                    loading="lazy"
                />
            </div>
        </div>
        <div class="c-card__row l-media c-card__row--hidden">
            <div class="l-media__block l-media__block--main">
                $if(it.subtitle)$
                    <strong class="u-d-block u-elp">$it.title$</strong>
                    <small class="u-d-block u-elp">$it.subtitle$</small>
                $elseif(it.category)$
                    <small class="u-d-block u-elp">$it.category$</small>
                    <strong class="u-d-block u-elp">$it.title$</strong>
                $elseif(it.date)$
                    <time datetime="$it.date.yyyy_mm_dd$">
                        <small class="u-d-none@sm-hi">
                            $it.date.short$
                        </small>
                        <small class="u-d-none@sm-lo">
                            $it.date.long$
                        </small>
                    </time>
                    <strong class="u-d-block u-elp">$it.title$</strong>
                $else$
                    $it.title$
                $endif$
            </div>
        </div>
    </a>
$endif$
$endif$