{% extends "base.html" %} {% import "macros.html" as macros %} {% block content %}

{{ section.title }}

{{ section.content | safe }} {% set groups = ['upcoming', 'recent', 'past'] %} {% set meetups = load_data(path="events.toml") %} {% for group in groups %} {% if meetups[group] %}

{{ group | capitalize }}

{% for event in meetups[group] %} {% set event_page = section.pages | filter(attribute="title", value=event.title) | first%} {% if event_page %}

{{ event_page.title }}

{% else %}

{{ event.title }}

{{ macros::event_attributes(event=event) }}
{% endif %} {% endfor %}
{% endif %} {% endfor %} {% endblock content %} {% block footer %} {{ macros::last_update() }} {% endblock footer %}