{% extends "base.html" %} {% load wagtailcore_tags wagtailimages_tags %} {% block body_class %}light-grey-bg{% endblock %} {% block content %}
{% if page.introduction %}

{{ page.introduction }}

{% endif %}
{% if subpages.object_list.exists %} {% for subpage in subpages.object_list.specific %} {% if subpage.icon %} {% image subpage.icon fill-180x180 class="listing__image" %} {% else %}
{% endif %} {% if subpage.deadline %}

Next deadline: {{ subpage.deadline|date:"M j, Y" }}

{% endif %}

{{ subpage.listing_title|default:subpage.title }}

{% if subpage.listing_summary or subpage.introduction %}
{{ subpage.listing_summary|default:subpage.introduction|truncatechars_html:155 }}
{% endif %}
{% endfor %} {% include "includes/pagination.html" with paginator_page=subpages %} {% else %} {# no items on this page #} {% endif %}
{% endblock %}