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
2.0 KiB
43 lines
2.0 KiB
<div> |
|
{% if list %} |
|
<div class="featured-cat"> |
|
<small><b>{{ title }}</b></small> |
|
</div> |
|
<div {{ attributes }}> |
|
<div> |
|
{% set feature = list[0] %} |
|
<div class="card"> |
|
<a href="{{ (feature.pubkey and npub_from_hex(feature.pubkey) != '') ? path('article', { npub: npub_from_hex(feature.pubkey), slug: feature.slug }) : path('article-legacy-redirect', { slug: feature.slug }) }}"> |
|
<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="{{ (item.pubkey and npub_from_hex(item.pubkey) != '') ? path('article', { npub: npub_from_hex(item.pubkey), slug: item.slug }) : path('article-legacy-redirect', { slug: item.slug }) }}"> |
|
<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>
|
|
|