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)
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:raises a
KeyError
. Thejekyll build --trace
output ends with: