{% extends "pageLayout.html" %} {% include "eventMacros.html" %} {% block bodyClass %}{{ super() }} apos-events-page{% endblock %} {# Output the current content of the page, with buttons to edit it #} {% block subnav %} {# Subpages? Why yes! #}
    {% for relative in page.children %}
  1. {{ relative.title | e }}
  2. {% endfor %}
{# And now filters... soon... #} {% endblock %} {% block main %} {{ aposArea({ slug: slug + ':beforeContent', area: page.areas.beforeContent, edit: edit }) }}
{{ renderEvents(items, page.url) }}
{% endblock %} {% block sidebar %} {# A regular free-form area follows, but with a restricted set of allowed types #} {{ aposArea({ slug: slug + ':sidebar', area: page.areas.sidebar, edit: edit, controls: [ 'style', 'bold', 'italic', 'createLink', 'image', 'video' ] }) }} {% endblock %}