{% load i18n wagtailcore_tags wagtail_dsfr_tags %}
{% if value.title %} <{{ value.heading_tag|default:"h2" }}>{{ value.title }} {% endif %} {% if value.show_filters %} {% if value.category_filter and value.index_page.get_categories.count %}
<{{ value.sub_heading_tag }} class="fr-h6">{% translate "Filter by category" %}
{% endif %} {% if value.tag_filter and value.index_page.get_tags.count %}
<{{ value.sub_heading_tag }} class="fr-h6">{% translate "Filter by tag" %}
{% endif %} {% if value.author_filter and value.index_page.get_authors.count %}
<{{ value.sub_heading_tag }} class="fr-h6">{% translate "Filter by author" %}
{% endif %} {% if value.source_filter and value.index_page.get_sources.count %}
<{{ value.sub_heading_tag }} class="fr-h6">{% translate "Filter by source" %}
{% endif %} {% endif %}
{% for post in value.posts %}
{% empty %}

{% translate "No article found." %}

{% endfor %}