clone of github.com/decent-newsroom/newsroom
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.
 
 
 
 
 
 

26 lines
892 B

<div {{ attributes }}>
{% if nzines is not empty %}
{% for item in nzines %}
{% set idx = indices[item.npub] is defined ? indices[item.npub] : null %}
<a class="card" href="{{ path('nzine_view', { npub: item.npub })}}">
<div class="card-body">
<h3 class="card-title">
{% if idx and idx.title %}
{{ idx.title }}
{% elseif item.slug %}
{{ item.slug }}
{% else %}
{{ item.npub }}
{% endif %}
</h3>
{% if idx and idx.summary %}
<p class="hidden">{{ idx.summary }}</p>
{% endif %}
</div>
</a>
<br>
{% endfor %}
{% else %}
<p><small>No magazines yet.</small></p>
{% endif %}
</div>