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

Cannot dereference iterator variable inside `for` loop: `KeyError` is raised #19

Closed fabacab closed 4 years ago

fabacab commented 4 years ago

Although dereferencing directly into page variable (page.icalendar_url, for instance), the same does not work when this is put inside of a {% for %} loop. The following example template code:

{% for cal in site.calendars %}
{% ical url: cal.icalendar_url %}{% endical %}
{% endfor %}

raises a KeyError. The jekyll build --trace output ends with:

lib/jekyll-ical-tag.rb:127:in `fetch': key not found: :cal (KeyError)