Skip to content

Commit

Permalink
Use end date if present to determine if event is over
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Feb 6, 2025
1 parent 259742a commit 0d0ccb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/load_event
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{%- assign curDate = site.time | date: '%s' | minus: 86400 -%}
{%- assign page_date = include.item.date | date: '%s' | minus: 0 -%}
{%- assign page_date = include.item.end | default: include.item.date | date: '%s' | minus: 0 -%}
{%- assign event_is_past = true -%}
{%- assign event_is_future = false -%}
{%- if page_date > curDate -%}
Expand Down

0 comments on commit 0d0ccb4

Please sign in to comment.