From e642d1628ce3822e86f0731641034b88ad6e0948 Mon Sep 17 00:00:00 2001 From: Vanja Cosic <1070957+vanjacosic@users.noreply.github.com> Date: Thu, 26 Oct 2023 17:45:01 +0200 Subject: Initial implementation of event pages --- templates/events.html | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 templates/events.html (limited to 'templates/events.html') diff --git a/templates/events.html b/templates/events.html new file mode 100644 index 0000000..afa9747 --- /dev/null +++ b/templates/events.html @@ -0,0 +1,67 @@ +{% extends "base.html" %} +{% import "macros.html" as macros %} + +{% block sidebar %} +{% set toc = ['upcoming', 'recent', 'past'] %} + +{% endblock sidebar %} + +{% 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 %} \ No newline at end of file -- cgit v1.2.3