Rakefire / jekyll-ical-tag

Pull ICS feed and provide a for-like loop of calendar events in jekyll's liquid tag
7 stars 6 forks source link

Possible regression in v1.2.5: `only_future` limiter no longer omits past events from iCalendar feed result #26

Closed fabacab closed 3 years ago

fabacab commented 3 years ago

In versions prior to v1.2.5, the only_future argument to the ical for loop tag caused VEVENT components whose DTSTART attribute were understood to be prior to the time returned by site.time to be omitted from the loop. Starting in v1.2.5, all VEVENTs are included in the loop regardless of this argument (or the limit argument). For example:

{% ical url: ical_url only_future: true limit: 1 %}
* {{ event.summary }}
{% endical %}
{% comment %}
Only the single next-most event, based on the value of `site.time`
should be in the prior loop. Instead, *all* VEVENT components in the given feed
at `ical_url` are returned and the loop prints all of them.
{% endcomment %}