Given this YAML:
- maincategory:
title: \"Projects\"
subcategory:
title: \"General\"
item:
title: \"Alpha\"
item:
- title: "Projects"
subcategories:
- title: "project-sub1"
items:
- title: "project-sub1-item1"
href: "#"
- title: "project-sub1-item2"
href: "#"
- title: "project-sub2"
items:
- title: "project-sub2-item1"
href: "#"
- title: "project-sub2-item2"
href: "#"
- title: "Support"
subcategories:
- title: "support-sub1"
items:
- title: "support-sub1-item1"
href: "#"
- title: "support-sub1-item2"
href: "#"
{% for entry in site.data.entries %}
{{ entry.title }}
{% for subcategory in entry.subcategories %}
{{ subcategory.title }}
{% for item in subcategory.items %}
- {{ item.title }}
{% endfor %}
{% endfor %}
{% endfor %}
Projects
project-sub1
project-sub2
Support
support-sub1