{% extends "base.html" %}

{% load wagtailcore_tags %}

{% block page %}{% endblock page %}

{% block body_class %}template-contentitemindexpage{% endblock %}

{% block inner %}
    <h1>{{ page.title }}</h1>

    <div class="intro">{{ page.intro|richtext }}</div>

    {% for post in page.get_children %}
        {% with post=post.specific %}
            <h2><a href="{% pageurl post %}">{{ post.title }}</a></h2>
            <p>{{ post.intro }}</p>
            {{ post.body|richtext }}
        {% endwith %}
    {% endfor %}

{% endblock inner %}
