You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.8 KiB
43 lines
1.8 KiB
<div> |
|
{% if list %} |
|
<div class="featured-cat hidden"> |
|
<small><b>{{ title }}</b></small> |
|
</div> |
|
<div {{ attributes }}> |
|
<div> |
|
{% set feature = list[0] %} |
|
<div class="card"> |
|
<a href="{{ path('magazine-category-article', {slug: feature.slug, cat: catSlug, mag: mag}) }}"> |
|
<div class="card-header"> |
|
{% if feature.image %} |
|
<img src="{{ feature.image }}" alt="Cover image for {{ feature.title }}"> |
|
{% endif %} |
|
</div> |
|
<div class="card-body"> |
|
<h2 class="card-title">{{ feature.title }}</h2> |
|
<p class="lede truncate"> |
|
{{ feature.summary }} |
|
</p> |
|
</div> |
|
</a> |
|
</div> |
|
</div> |
|
<div> |
|
{% for item in list %} |
|
{% if item != feature %} |
|
<div class="card"> |
|
<a href="{{ path('magazine-category-article', {slug: feature.slug, cat: catSlug, mag: mag}) }}"> |
|
<div class="card-body"> |
|
<h2 class="card-title">{{ item.title }}</h2> |
|
<p class="lede truncate"> |
|
{{ item.summary }} |
|
</p> |
|
</div> |
|
</a> |
|
</div> |
|
{% endif %} |
|
{% endfor %} |
|
</div> |
|
</div> |
|
{% endif %} |
|
</div>
|
|
|