{% load i18n static thumbnail cms_tags apphooks_config_tags %}
{# The image is only shown on the detail view by using the condition "and detail_view" #} {% if article.featured_image_id %} {% if detail_view %}

{{ article.featured_image.alt }}

{% else %} {% include "aldryn_newsblog/includes/article_featured_image_in_list.html" %} {% endif %} {% endif %} {% if article.categories.exists %}

{% for category in article.categories.all %} {{ category.name }} {% if not forloop.last %}, {% endif %} {% endfor %}

{% endif %}

{% if not detail_view %} {% render_model article "title" %} {% else %} {% render_model article "title" %} {% endif %}

{{ article.publishing_date|date }}

{% include "aldryn_newsblog/includes/author.html" with author=article.author %} {% if article.tags %}

{% for tag in article.tags.all %} {{ tag.name }} {% endfor %}

{% endif %}
{% if detail_view %} {% render_model article "lead_in" %} {% else %} {% render_model article "lead_in" "" language "truncatechars_html:180" %} {% endif %}
{% if detail_view %}
{% render_placeholder article.content language placeholder_language %}
{% endif %}