Skip to content

Commit

Permalink
Updated 'next event' logic to present an event throughout the day it …
Browse files Browse the repository at this point in the history
…occurs on, fixes #88
  • Loading branch information
aaunel committed Apr 30, 2015
1 parent 99a8e2e commit b6e16b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
<section class="module event-detail">
<h2 class="module-heading">Next Event:</h2>
{% for event in events reversed %}
{% unless current or event.date < site.time %}
{% capture site_timestamp %}{{ site.time | date:"%s" }}{% endcapture %}
{% capture event_timestamp %}{{ event.date | date:"%s" | plus:28500 }}{% endcapture %}
{% unless current or event_timestamp < site_timestamp %}
{% assign current = event %}{% assign offset = forloop.rindex %}
{% include partial/event_detail.html %}
{% endunless %}
Expand Down

0 comments on commit b6e16b3

Please sign in to comment.