{% extends 'base.html' %} {% block content %} {% for content in homepage %}

{{content.title}}

{{content.formatted_header}}

{{content.formatted_body}}

{% endfor %}
{% if upcoming_events.exists %} {% include "event_preview.html" with events=upcoming_events %} {% endif %} {% if ongoing_events.exists %} {% include "event_preview.html" with events=ongoing_events %} {% endif %} {% if past_events.exists %} {% include "event_preview.html" with events=past_events %} {% endif %}
{% endblock %}