Hi!
I’m working on adding sorting and lower
/higher
fields to sections (@keats noted here that them being missing is a bug), and I stumbled upon one small inconsistency while writing tests.
Now sections can be “transparent”, which means that they reparent their pages to the ancestor section. But this doesn’t apply to subsections. So if we have something like:
content/_index.md
├─content/blog/_index.md weight=0
├─content/novels/_index.md weight=3
└─content/wiki/_index.md weight=0 transparent=true
├─content/wiki/recipes/_index.md weight=1
└─content/wiki/dev/_index.md weight=2
… the structure will be preserved, and transparent=true
will kinda be ignored.
I would expect Zola to flatten the subsection list, so we would get:
content/_index.md
├─content/blog/_index.md weight=0
├─content/wiki/recipes/_index.md weight=1
├─content/wiki/dev/_index.md weight=2
└─content/novels/_index.md weight=3
Is this a bug, or is it supposed to work like this? Should I fix it?