{% load wagtailimages_tags wagtailcore_tags placeholder_tags i18n svg_tags %}
{% for article in featured_articles %}
{% get_placeholder_image as placeholder %} {% with display_image=article.image|default:placeholder %} {% if display_image %}
{% image display_image fill-168x280 loading="lazy" class="w-full h-full object-cover" alt=display_image.alternative_text|default:"Article featured image" %}
{% endif %} {% endwith %}
{{ article.classifiers.first.classifier.name }}
{% svg_icon name="heroicons-calendar-days-outline" classname="w-3 h-3 mr-1" %} {% if article.publication_date %} {% if article.revision_date %} , updated: {% endif %} {% endif %}
{% svg_icon name="heroicons-clock-outline" classname="w-4 h-4 mr-1" %} 6 min read

{{ article.title }}

{{ article.get_intro_fallback|richtext }}
{% for tag in article.tags.all|slice:":2" %} {{ tag.name }} {% endfor %} {% if article.tags.all|length > 2 %}...{% endif %}
{% svg_icon name="heroicons-user-circle-outline" classname="w-4 h-4 mr-2" %}

{% if article.display_authors and article.authors.all %} {% with article.authors.all|first as author %} {{ author.person }} {% if not forloop.last %},{% endif %} {% endwith %} {% endif %}

{% endfor %}