I have a section, that includes subsections and pages (as page bundles). I want a list.html template to:
list subsections
list pages in this section (but not in subsections)
However, {{ range .Pages }} brings a flattened list ALL pages below this section, which defies the very purpose of having subsections. I’ve tried a few things, but I do not see anything in the documentation that could make a distinction I’m looking for.
I’ve spent a couple of hours there already. My project is not ready to be shared, I’m afraid
OK, I rephrase the question. Is .Pages supposed to return the immediate descendants only (subsections and standalone pages in this sections)? If not, how or whether this can be achieved?