{% extends "base.html" %} {% load wagtailcore_tags wagtailimages_tags navigation_tags static %} {% block body_class %}light-grey-bg{% endblock %} {% block main_class %}wrapper--bottom-space{% endblock %} {% block content %}

{{ page.introduction }}

{% if subpages.paginator.count %}
{% if subpages.object_list.exists %} {% for subpage in subpages.object_list.specific %}

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

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

{{ subpage.listing_summary|default:subpage.introduction }}

{% endif %}
{% endfor %} {% else %} {# no items on this page #} {% endif %}
{% include "includes/pagination.html" with paginator_page=subpages %} {% else %} {# no items on any page #} {% endif %}
{% endblock %}