diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/layouts/categorized_list.html | 11 | ||||
| -rw-r--r-- | templates/partials/grid_card.html | 3 | ||||
| -rw-r--r-- | templates/partials/list_card.html | 6 |
3 files changed, 17 insertions, 3 deletions
diff --git a/templates/layouts/categorized_list.html b/templates/layouts/categorized_list.html index aea8863..256e9de 100644 --- a/templates/layouts/categorized_list.html +++ b/templates/layouts/categorized_list.html | |||
| @@ -7,9 +7,14 @@ $body$ | |||
| 7 | 7 | ||
| 8 | <div class="c-card-list"> | 8 | <div class="c-card-list"> |
| 9 | $for(list)$ | 9 | $for(list)$ |
| 10 | <h2 class="c-card-list__category-header"> | 10 | <header class="c-card-list__category-header"> |
| 11 | <a href="$it.url.rel$">$it.title$</a> | 11 | <h2 class="c-card-list__category-title"> |
| 12 | </h2> | 12 | <a href="$it.url.rel$">$it.title$</a> |
| 13 | </h2> | ||
| 14 | $if(it.content)$ | ||
| 15 | <small class="c-card-list__category-subtitle">$it.content$</small> | ||
| 16 | $endif$ | ||
| 17 | </header> | ||
| 13 | $if(it.grid)$ | 18 | $if(it.grid)$ |
| 14 | <div class="c-card-list__category-content c-card-list__category-content--grid"> | 19 | <div class="c-card-list__category-content c-card-list__category-content--grid"> |
| 15 | $it.items:partials/grid_card()$ | 20 | $it.items:partials/grid_card()$ |
diff --git a/templates/partials/grid_card.html b/templates/partials/grid_card.html index 25c2271..4b24711 100644 --- a/templates/partials/grid_card.html +++ b/templates/partials/grid_card.html | |||
| @@ -9,7 +9,10 @@ | |||
| 9 | $endif$ | 9 | $endif$ |
| 10 | <div class="c-card__block c-card__block--main"> | 10 | <div class="c-card__block c-card__block--main"> |
| 11 | $if(it.subtitle)$ | 11 | $if(it.subtitle)$ |
| 12 | <strong class="u-db">$it.title$</strong> | ||
| 12 | <small class="u-db">$it.subtitle$</small> | 13 | <small class="u-db">$it.subtitle$</small> |
| 14 | $elseif(it.category)$ | ||
| 15 | <small class="u-db">$it.category$</small> | ||
| 13 | <strong class="u-db">$it.title$</strong> | 16 | <strong class="u-db">$it.title$</strong> |
| 14 | $elseif(it.date)$ | 17 | $elseif(it.date)$ |
| 15 | <time datetime="$it.date.yyyy_mm_dd$"> | 18 | <time datetime="$it.date.yyyy_mm_dd$"> |
diff --git a/templates/partials/list_card.html b/templates/partials/list_card.html index 644e0d3..0ed6360 100644 --- a/templates/partials/list_card.html +++ b/templates/partials/list_card.html | |||
| @@ -16,6 +16,12 @@ | |||
| 16 | $it.subtitle$ | 16 | $it.subtitle$ |
| 17 | </small> | 17 | </small> |
| 18 | </div> | 18 | </div> |
| 19 | $elseif(it.category)$ | ||
| 20 | <div class="c-card__block u-fs0"> | ||
| 21 | <small> | ||
| 22 | $it.category$ | ||
| 23 | </small> | ||
| 24 | </div> | ||
| 19 | $elseif(it.date)$ | 25 | $elseif(it.date)$ |
| 20 | <time datetime="$it.date.yyyy_mm_dd$" class="c-card__block u-fs0"> | 26 | <time datetime="$it.date.yyyy_mm_dd$" class="c-card__block u-fs0"> |
| 21 | <small class="u-dn@sm-hi"> | 27 | <small class="u-dn@sm-hi"> |
