diff options
Diffstat (limited to 'templates/partials/grid_card.html')
-rw-r--r-- | templates/partials/grid_card.html | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/templates/partials/grid_card.html b/templates/partials/grid_card.html new file mode 100644 index 0000000..25c2271 --- /dev/null +++ b/templates/partials/grid_card.html | |||
@@ -0,0 +1,33 @@ | |||
1 | <a href="$it.url.rel$" class="c-card-list__card c-card"> | ||
2 | $if(it.indicator)$ | ||
3 | <div class="c-card__block c-card__block--indicator"></div> | ||
4 | $endif$ | ||
5 | $if(it.icon)$ | ||
6 | <svg class="c-card__block o-icon" width="1em" height="1em"> | ||
7 | <use href="/symbols.svg#icon-$it.icon$"></use> | ||
8 | </svg> | ||
9 | $endif$ | ||
10 | <div class="c-card__block c-card__block--main"> | ||
11 | $if(it.subtitle)$ | ||
12 | <small class="u-db">$it.subtitle$</small> | ||
13 | <strong class="u-db">$it.title$</strong> | ||
14 | $elseif(it.date)$ | ||
15 | <time datetime="$it.date.yyyy_mm_dd$"> | ||
16 | <small class="u-dn@sm-hi"> | ||
17 | $it.date.short$ | ||
18 | </small> | ||
19 | <small class="u-dn@sm-lo"> | ||
20 | $it.date.long$ | ||
21 | </small> | ||
22 | </time> | ||
23 | <strong class="u-db">$it.title$</strong> | ||
24 | $else$ | ||
25 | $it.title$ | ||
26 | $endif$ | ||
27 | </div> | ||
28 | $if(it.post_icon)$ | ||
29 | <svg class="c-card__block o-icon" width="1em" height="1em"> | ||
30 | <use href="/symbols.svg#$it.post_icon$"></use> | ||
31 | </svg> | ||
32 | $endif$ | ||
33 | </a> | ||