This PR changes the logic for "popping" events off the calendar.
At present events don't appear on the calendar when start time of the event is after the execution time of generate_posts.py. This is fine for short events but if your event runs over multiple days it means your event disappears after the start time has passed. This isn't very helpful for showcasing ongoing events.
This PR also:
tidies up code in the _layouts/home.html template, removing duplication of logic for showing only future events. Since this is handled in our post generation logic it feels right to just remove this.
Adds logic for calculating event end time and uses that are the key determinant of if a post is generated.
This PR changes the logic for "popping" events off the calendar.
At present events don't appear on the calendar when start time of the event is after the execution time of
generate_posts.py
. This is fine for short events but if your event runs over multiple days it means your event disappears after the start time has passed. This isn't very helpful for showcasing ongoing events.This PR also:
_layouts/home.html
template, removing duplication of logic for showing only future events. Since this is handled in our post generation logic it feels right to just remove this.