diff options
Diffstat (limited to 'templates/partials/list_card.html')
-rw-r--r-- | templates/partials/list_card.html | 93 |
1 files changed, 50 insertions, 43 deletions
diff --git a/templates/partials/list_card.html b/templates/partials/list_card.html index 3f2b956..e7d1e05 100644 --- a/templates/partials/list_card.html +++ b/templates/partials/list_card.html | |||
@@ -1,46 +1,53 @@ | |||
1 | $if(it.url)$ | 1 | $if(it.url)$ |
2 | <a href="$it.url.rel$" class="l-card-list__card c-card h-entry" itemprop="dataFeedElement" itemscope itemtype="https://schema.org/$it.schema_type$"> | 2 | <a |
3 | <link class="u-url" itemprop="url" href="$it.url.full$" /> | 3 | href="$it.url.rel$" |
4 | class="l-card-list__card c-card h-entry" | ||
5 | itemprop="dataFeedElement" | ||
6 | itemscope | ||
7 | itemtype="https://schema.org/$it.schema_type$" | ||
8 | $if(it.rel)$rel="$it.rel$"$endif$ | ||
9 | > | ||
10 | <link class="u-url" itemprop="url" href="$it.url.full$" /> | ||
4 | 11 | ||
5 | <div class="c-card__row l-media"> | 12 | <div class="c-card__row l-media"> |
6 | $if(it.indicator)$ | 13 | $if(it.indicator)$ |
7 | <div class="c-card__indicator l-media__block"></div> | 14 | <div class="c-card__indicator l-media__block"></div> |
8 | $endif$ | 15 | $endif$ |
9 | $if(it.icon)$ | 16 | $if(it.icon)$ |
10 | <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true"> | 17 | <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true"> |
11 | <use href="/icons.svg#$it.icon$"></use> | 18 | <use href="/icons.svg#$it.icon$"></use> |
12 | </svg> | 19 | </svg> |
13 | $endif$ | 20 | $endif$ |
14 | <div class="l-media__block l-media__block--main p-name" itemprop="name headline"> | 21 | <div class="l-media__block l-media__block--main p-name" itemprop="name headline"> |
15 | $it.title$ | 22 | $it.title$ |
16 | </div> | 23 | </div> |
17 | $if(it.subtitle)$ | 24 | $if(it.subtitle)$ |
18 | <div class="l-media__block u-fs0"> | 25 | <div class="l-media__block u-fs0"> |
19 | <small> | 26 | <small> |
20 | $it.subtitle$ | 27 | $it.subtitle$ |
21 | </small> | 28 | </small> |
22 | </div> | 29 | </div> |
23 | $elseif(it.category)$ | 30 | $elseif(it.category)$ |
24 | <div class="l-media__block u-fs0"> | 31 | <div class="l-media__block u-fs0"> |
25 | <small> | 32 | <small> |
26 | $it.category$ | 33 | $it.category$ |
27 | </small> | 34 | </small> |
28 | </div> | 35 | </div> |
29 | $elseif(it.date)$ | 36 | $elseif(it.date)$ |
30 | <time datetime="$it.date.yyyy_mm_dd$" class="l-media__block u-fs0" itemprop="dateCreated"> | 37 | <time datetime="$it.date.yyyy_mm_dd$" class="l-media__block u-fs0" itemprop="dateCreated"> |
31 | <small class="u-d-none@sm-hi"> | 38 | <small class="u-d-none@sm-hi"> |
32 | $it.date.short$ | 39 | $it.date.short$ |
33 | </small> | 40 | </small> |
34 | <small class="u-d-none@sm-lo"> | 41 | <small class="u-d-none@sm-lo"> |
35 | $it.date.long$ | 42 | $it.date.long$ |
36 | </small> | 43 | </small> |
37 | </time> | 44 | </time> |
38 | $endif$ | 45 | $endif$ |
39 | $if(it.post_icon)$ | 46 | $if(it.post_icon)$ |
40 | <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true"> | 47 | <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true"> |
41 | <use href="/icons.svg#$it.post_icon$"></use> | 48 | <use href="/icons.svg#$it.post_icon$"></use> |
42 | </svg> | 49 | </svg> |
43 | $endif$ | 50 | $endif$ |
44 | </div> | 51 | </div> |
45 | </a> | 52 | </a> |
46 | $endif$ | 53 | $endif$ |