From e028ac38509a954a7d8808962dd57d400142ef64 Mon Sep 17 00:00:00 2001
From: Vanja Cosic <1070957+vanjacosic@users.noreply.github.com>
Date: Fri, 27 Oct 2023 14:58:01 +0200
Subject: Clean up event styles
---
templates/event-page.html | 41 ++++++++++++++++++++++-------------------
templates/events.html | 7 ++++---
templates/macros.html | 6 +++---
3 files changed, 29 insertions(+), 25 deletions(-)
(limited to 'templates')
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 %}
-
- {{ page.title }}
-
+
+
+ {{ page.title }}
+
-{% 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 about this event
-
- {{ macros::event_attributes(event=event) }}
-
-{% else %}
- No data found for this event.
-{% endif %}
-
-{{ page.content | safe }}
+ {% if event %}
+
+
+ Details about this event
+
+
+ {{ macros::event_attributes(event=event) }}
+
+
+ {% else %}
+ No data found for this event.
+ {% endif %}
+ {{ page.content | safe }}
+
{% endblock content %}
\ No newline at end of file
diff --git a/templates/events.html b/templates/events.html
index 2ee2e6b..6a34d22 100644
--- a/templates/events.html
+++ b/templates/events.html
@@ -47,14 +47,15 @@
{% else %}
-
+
{{ event.title }}
-
- {{ macros::event_attributes(event=event) }}
+
+ {{ macros::event_attributes(event=event) }}
+
{% endif %}
diff --git a/templates/macros.html b/templates/macros.html
index 47b07e2..7e5acb1 100644
--- a/templates/macros.html
+++ b/templates/macros.html
@@ -2,7 +2,7 @@
{% if event.url %}
-
- Event link
+ Signup
-
{{ event.title}} on Meetup.com
@@ -14,9 +14,9 @@
-
{% if event.date %}
-
+
{% else %}
- (No date found)
+ (No date found)
{% endif %}
--
cgit v1.2.3