From 6bd0b4f8cbd3036cd4ad545f27729bd2714fc18e Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Thu, 18 Jan 2024 23:46:53 -0500 Subject: [PATCH] Account for actual start time for multi-session events --- _includes/site_meta.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/_includes/site_meta.html b/_includes/site_meta.html index 77cc2c3..489fa0b 100644 --- a/_includes/site_meta.html +++ b/_includes/site_meta.html @@ -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 %}