{% extends "pageLayout.html" %} {% include "eventMacros.html" %} {# Keep class names in the modules prefixed and consistent. #} {# The blog has apos-blog-page, so this should be apos-events-page. -Tom #} {% block bodyClass %}{{ super() }} apos-events-page{% endblock %} {# 'here()' returns the URL of the page, with the year and month added if we are #} {# viewing by month, plus any query string based on active filters. You can pass #} {# 'changes' to override filters. Passing null for a filter removes it. #} {%- macro here(changes) -%} {{ page.url | build([ 'year', 'month' ], { year: activeYear, month: activeMonth, tag: query.tag }, changes) }} {%- endmacro -%} {% block mainContent %}
{% if defaultView %} {# Currently showing upcoming events #}

Upcoming Events

Events by Month

{% else %} {# Currently showing a particular month of events #}

Upcoming Events

« {{ (activeYear + '-' + activeMonth + '-01') | date('MMMM YYYY') }} »

{% endif %} {# Do not show unusable filters #} {% if allTags.length %}

{% endif %}
{{ renderEventPreviews(items, page.url) }} {{ renderPager(pager, here({})) }} {% endblock %}