summaryrefslogtreecommitdiffstats
path: root/templates/partials/gallery_card.html
blob: 6802faa938f37b644c9bc0d54f4dfe8188f217e1 (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<a
    href="$it.url.rel$"
    class="l-card-list__card c-card t-raised h-entry"
    itemprop="dataFeedElement"
    itemscope
    itemtype="https://schema.org/$it.schema_type$"
    $if(it.rel)$
        rel="$it.rel$"
    $endif$
>
    <link itemprop="thumbnailUrl" href="$it.thumbnail.full$" />

    <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;"
            />
        </div>
    </div>

    <div class="c-card__row l-media c-card__row--hidden">
        $if(it.indicator)$
            <div class="c-card__indicator l-media__block"></div>
        $endif$
        $if(it.is_prev)$
            <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true">
                <use href="$assets.icons_svg$#arrow-left"></use>
            </svg>
        $elseif(it.is_next)$
            <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true">
                <use href="$assets.icons_svg$#blank"></use>
            </svg>
        $elseif(it.icon)$
            <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true">
                <use href="$assets.icons_svg$#$it.icon$"></use>
            </svg>
        $endif$
        <div class="l-media__block l-media__block--main">
            $if(it.is_prev)$
                <small class="u-d-block">Previous</small>
                <div>
                    <strong class="p-name" itemprop="name headline">$it.title$</strong>
                    $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$
                </div>
            $elseif(it.is_next)$
                <small class="u-d-block">Next</small>
                <div>
                    <strong class="p-name" itemprop="name headline">$it.title$</strong>
                    $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$
                </div>
            $elseif(it.subtitle)$
                <div>
                    <strong class="p-name" itemprop="name headline">$it.title$</strong>
                    $if(it.draft)$
                        <span class="o-badge u-ml-100">Draft</span>
                    $endif$
                </div>
                <small class="u-d-block">$it.subtitle$</small>
            $elseif(it.category)$
                <small class="u-d-block">$it.category$</small>
                <div>
                    <strong class="p-name" itemprop="name headline">
                        $it.title$
                    </strong>
                    $if(it.draft)$
                        <span class="o-badge u-ml-100">Draft</span>
                    $endif$
                </div>
            $elseif(it.show_date)$
                <small class="u-d-block">
                    <time datetime="$it.last_update.yyyy_mm_dd$" class="dt-updated" itemprop="dateModified">
                        $it.last_update.long$
                    </time>
                </small>
                <div>
                    <strong class="p-name" itemprop="name headline">$it.title$</strong>
                    $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$
                </div>
            $else$
                <span class="p-name" itemprop="name headline">$it.title$</span>
                $if(it.draft)$<span class="o-badge u-ml-100">Draft</span>$endif$
            $endif$
        </div>
        $if(it.is_next)$
            <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true">
                <use href="$assets.icons_svg$#arrow-right"></use>
            </svg>
        $elseif(it.is_prev)$
        $elseif(it.post_icon)$
            <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true">
                <use href="$assets.icons_svg$#$it.post_icon$"></use>
            </svg>
        $endif$
    </div>
</a>