{% for collection in site.data.chapters%} {% assign collectionName = collection[0] %} {% assign chapter = site.data.chapters[collectionName] %} {{collection[1].title}} {% for section in chapter.sections %}
{{section.title}}
{% assign items = site[collectionName]| where: 'section', section.title | sort: 'order' %}
{% for item in items %} {{item.title}} {% endfor %}
{% endfor %} {% endfor %}