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
/content
/<TYPE>
/sub-directory
_index.md
page-1.md
/page-in-directory
_index.md
What I’m trying to do is to list all the sub pages at _index.md
in /sub-directory
. But I’m only able to render the page-1.md
in the list.
I want to render a list with links to page-1.md
and page-in-directory
.
{{ range .Data.Pages }}
gives me only the page-1.md
. 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?
Thanks!