summaryrefslogtreecommitdiffstats
path: root/templates/partials/gallery_card.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/partials/gallery_card.html')
-rw-r--r--templates/partials/gallery_card.html47
1 files changed, 47 insertions, 0 deletions
diff --git a/templates/partials/gallery_card.html b/templates/partials/gallery_card.html
new file mode 100644
index 0000000..f724e3b
--- /dev/null
+++ b/templates/partials/gallery_card.html
@@ -0,0 +1,47 @@
1$if(it.url)$
2 <a href="$it.url.rel$" class="l-card-list__card c-card">
3 $if(it.thumbnail)$
4 <div class="c-card__row c-card__row--flush">
5 <div class="c-card__thumbnail">
6 <img class="c-card__thumbnail-img" src="$it.thumbnail.rel$" />
7 </div>
8 </div>
9 $endif$
10 <div class="c-card__row">
11 $if(it.indicator)$
12 <div class="c-card__block c-card__block--indicator"></div>
13 $endif$
14 $if(it.icon)$
15 <svg class="c-card__block o-icon" width="1em" height="1em">
16 <use href="/symbols.svg#icon-$it.icon$"></use>
17 </svg>
18 $endif$
19 <div class="c-card__block c-card__block--main">
20 $if(it.subtitle)$
21 <strong class="u-db u-elp">$it.title$</strong>
22 <small class="u-db u-elp">$it.subtitle$</small>
23 $elseif(it.category)$
24 <small class="u-db u-elp">$it.category$</small>
25 <strong class="u-db u-elp">$it.title$</strong>
26 $elseif(it.date)$
27 <time datetime="$it.date.yyyy_mm_dd$">
28 <small class="u-dn@sm-hi">
29 $it.date.short$
30 </small>
31 <small class="u-dn@sm-lo">
32 $it.date.long$
33 </small>
34 </time>
35 <strong class="u-db u-elp">$it.title$</strong>
36 $else$
37 $it.title$
38 $endif$
39 </div>
40 $if(it.post_icon)$
41 <svg class="c-card__block o-icon" width="1em" height="1em">
42 <use href="/symbols.svg#icon-$it.post_icon$"></use>
43 </svg>
44 $endif$
45 </div>
46 </a>
47$endif$