From fb62dffa5cd773a5fb3fd253a824cb8cc19b4c33 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sun, 10 Dec 2023 22:34:15 +0000 Subject: [PATCH] Add month headings to event list Closes: #81 --- templates/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/index.html b/templates/index.html index f5b9d0f..860c5a7 100644 --- a/templates/index.html +++ b/templates/index.html @@ -141,10 +141,10 @@

Agenda

{% for event in events if event.as_date >= two_weeks_ago %} - {% if loop.first or event.date.year != loop.previtem.date.year %} + {% if loop.first or event.date.year != loop.previtem.date.year or event.date.month != loop.previtem.date.month %}
-
{{ event.date.year }}
+

{{ event.date.strftime("%B %Y") }}

{% endif %}