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