I have a data file containing objects that I want to use specified indexes in a Jekyll include.
My page is calling the include like so:
{% include components/header-filter.html items="0" %}
Where 0 is the index I want to use in this case.
My include is:
{% assign filterID = include.items %}
{% capture id %}{{ filterID }}{% endcapture %}
{% assign filter = site.data.filters[id] %}
This works until it gets to the 3rd line, at which point it outputs nothing.
What am I doing wrong?
Cheers!