summaryrefslogtreecommitdiff
path: root/templates/event-page.html
blob: d807e310c818d8dadbe66bba4437cd6c760a81f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{% extends "base.html" %}
{% import "macros.html" as macros %}

{% block content %}
<h1 class="title">
  {{ page.title }}
</h1>

{% set meetups = load_data(path="events.toml") %}
{% set upcoming = meetups['upcoming'] %}
{% set all_events = meetups['recent'] | concat(with=upcoming) %}

{% set event = all_events | filter(attribute="title", value=page.title) | first %}

{% if event %}
    <details>
        <summary>
            <h3>Details about this event</h3>
        </summary>
        {{ macros::event_attributes(event=event) }}
    </details>
{% else %}
    No data found for this event.
{% endif %}

{{ page.content | safe }}

{% endblock content %}