{% load wagtailcore_tags wagtailimages_tags %} {% if listing %}

{{ title }}

{{ intro }}

{% if link_text and link %} {% endif %}
{% for item in listing %} {% if item.icon %} {% image item.icon max-50x50 as icon %} {{ icon.alt }} {% endif %} {% if item.deadline %}
Next deadline: {{ item.deadline|date:"M j, Y" }}
{% endif %}

{{ item }}

{% if item.listing_summary or item.introduction %}

{{ item.listing_summary|default:item.introduction|truncatechars_html:130 }}

{% endif %}
{% endfor %}
{% if link_text and link %} {% endif %}
{% endif %}