Files

3 lines
631 B
HTML

{% load slx_brand %}
<div class="cards">{% for item in items %}<a class="card" href="{{ item.get_absolute_url }}">{% if item.art %}<img src="{{ item.art.url }}" alt="" loading="lazy">{% endif %}<div>{% if item.category %}<span class="kicker">{{ item.category }}</span>{% endif %}<h3>{{ item.title|slx_brand }}</h3>{% if item.summary %}<p>{{ item.summary|slx_brand }}</p>{% endif %}{% if item.kind == 'news' %}<time datetime="{{ item.publish_at|date:'c' }}">{{ item.publish_at|date:"M j, Y" }}</time> {% include "view-eye.html" with views=item.public_views %}{% endif %}</div></a>{% empty %}<p>No entries yet.</p>{% endfor %}</div>