summaryrefslogtreecommitdiff
path: root/templates/event-page.html
diff options
context:
space:
mode:
authorVanja Cosic <1070957+vanjacosic@users.noreply.github.com>2023-10-27 14:58:01 +0200
committerVanja Cosic <1070957+vanjacosic@users.noreply.github.com>2023-10-27 14:58:01 +0200
commite028ac38509a954a7d8808962dd57d400142ef64 (patch)
tree64014b887307d9de19ba75b8cb4cd481934c3a74 /templates/event-page.html
parent3e5ee8db4a1a2344118fcf78840151210325cd9f (diff)
downloadcph-rust-website-e028ac38509a954a7d8808962dd57d400142ef64.zip
Clean up event styles
Diffstat (limited to 'templates/event-page.html')
-rw-r--r--templates/event-page.html41
1 files changed, 22 insertions, 19 deletions
diff --git a/templates/event-page.html b/templates/event-page.html
index d807e31..44911f7 100644
--- a/templates/event-page.html
+++ b/templates/event-page.html
@@ -2,27 +2,30 @@
{% import "macros.html" as macros %}
{% block content %}
-<h1 class="title">
- {{ page.title }}
-</h1>
+<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 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 %}
+ {% 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 }}
+ {% 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 %} \ No newline at end of file