Skip to content

Commit

Permalink
Account for actual start time for multi-session events
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Jan 19, 2024
1 parent f270c70 commit 6bd0b4f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion _includes/site_meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@
{% assign starttime = next_session.date | date: '%s' %}
{% assign endtime = starttime | plus: 3600 %}
{% if next_session.event %}
{% assign last_in_series = future_sessions | where: 'event', next_session.event | last %}
{% assign all_in_series = future_sessions | where: 'event', next_session.event %}
{% assign first_in_series = all_in_series | first %}
{% assign last_in_series = all_in_series | last %}
{% assign starttime = first_in_series.date | date: '%s' %}
{% assign endtime = last_in_series.date | date: '%s' | plus: 3600 %}
{% assign next_session = site.pages | find_exp: "item", "item.title==next_session.event or item.temp_title==next_session.event" %}
{% endif %}
Expand Down

0 comments on commit 6bd0b4f

Please sign in to comment.