I'm trying to define the sections of a page in the frontmatter of my Jekyll post like so:
---
title: Foobar
sections:
- First
- Second
- Third
---
This works fine, but I would now need to have some sections with nested items; no matter how I try, Jekyll is either not happy about any nested objects or outputs the nested "text", e.g. this:
---
title: Foobar
sections:
- First
- Second:
- Nested one
- Nested two
- Third
---
... will interpret "- Second: - Nested one - Nested two" as one list item.
I'm using those sections to generate inline anchor links in the page main navigation. How can I set up a nested list in the frontmatter for this?