home/templates/home/home_magazine_article_summary.html
{% load wagtailcore_tags %}
<div class="card mb-2">
<div class="card-body">
<a href="{% pageurl article %}" class="card-title fs-3 fw-bold title-link-no-underline stretched-link">
{{ article.title }}
</a>
{% if article.authors.count %}
<ul class="list-inline mb-1">
<li class="list-inline-item">Author(s):</li>
{% for author in article.authors.all %}
<li class="list-inline-item">
{% if author.author.live %}
<a href="{% pageurl author.author %}">{{ author.author }}</a>{% if not forloop.last %},{% endif %}
{% else %}
{{ author.author }}{% if not forloop.last %},{% endif %}
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
{{ article.teaser | richtext| truncatewords_html:50 }}
</div>
</div>