List sub pages being list pages themselves

Hi, I have read the docs but can’t find how to render a list with all the sub pages, including sub pages being list pages themselves? Is it possible in v0.22?

// Directory structure

What I’m trying to do is to list all the sub pages at in /sub-directory. But I’m only able to render the in the list.

I want to render a list with links to and page-in-directory.

{{ range .Data.Pages }} gives me only the When I try with {{ range .Site.Pages }} I obvious get all the pages including the one I’m looking for: page-in-directory. Is there a way to render that page in the list at my sub-directory page?

Or is there a better method/architecture to list pages in a list where some of the listed pages have their own lists further down the directory tree?