blob: 44911f7363029ae54d7e7c31099f17fb36cfe5d9 (
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
29
30
31
|
{% extends "base.html" %}
{% import "macros.html" as macros %}
{% block content %}
<article>
<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>
<div>
{{ macros::event_attributes(event=event) }}
</div>
</details>
{% else %}
No data found for this event.
{% endif %}
{{ page.content | safe }}
</article>
{% endblock content %}
|