diff options
Diffstat (limited to 'templates/partials/small_gallery_card.html')
| -rw-r--r-- | templates/partials/small_gallery_card.html | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/templates/partials/small_gallery_card.html b/templates/partials/small_gallery_card.html new file mode 100644 index 0000000..35d87e4 --- /dev/null +++ b/templates/partials/small_gallery_card.html | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | $if(it.url)$ | ||
| 2 | $if(it.thumbnail)$ | ||
| 3 | <a href="$it.url.rel$" class="l-card-list__card c-card" title="$it.title/nowrap$"> | ||
| 4 | <div class="c-card__row l-media l-media--flush"> | ||
| 5 | <div class="c-card__thumbnail"> | ||
| 6 | <img | ||
| 7 | class="c-card__thumbnail-img" | ||
| 8 | src="$it.thumbnail.rel$" | ||
| 9 | alt="Preview thumbnail of "$it.title$"" | ||
| 10 | loading="lazy" | ||
| 11 | /> | ||
| 12 | </div> | ||
| 13 | </div> | ||
| 14 | <div class="c-card__row l-media c-card__row--hidden"> | ||
| 15 | <div class="l-media__block l-media__block--main"> | ||
| 16 | $if(it.subtitle)$ | ||
| 17 | <strong class="u-d-block u-elp">$it.title$</strong> | ||
| 18 | <small class="u-d-block u-elp">$it.subtitle$</small> | ||
| 19 | $elseif(it.category)$ | ||
| 20 | <small class="u-d-block u-elp">$it.category$</small> | ||
| 21 | <strong class="u-d-block u-elp">$it.title$</strong> | ||
| 22 | $elseif(it.date)$ | ||
| 23 | <time datetime="$it.date.yyyy_mm_dd$"> | ||
| 24 | <small class="u-d-none@sm-hi"> | ||
| 25 | $it.date.short$ | ||
| 26 | </small> | ||
| 27 | <small class="u-d-none@sm-lo"> | ||
| 28 | $it.date.long$ | ||
| 29 | </small> | ||
| 30 | </time> | ||
| 31 | <strong class="u-d-block u-elp">$it.title$</strong> | ||
| 32 | $else$ | ||
| 33 | $it.title$ | ||
| 34 | $endif$ | ||
| 35 | </div> | ||
| 36 | </div> | ||
| 37 | </a> | ||
| 38 | $endif$ | ||
| 39 | $endif$ | ||
