Hi there,
I have this content structure :
- content/fr/folder_material/_index.html
- content/fr/folder_material/folder_FDM/_index.html
- content/fr/folder_material/folder_FDM/pla.html
- content/fr/folder_material/folder_RESINE/_index.html
- content/fr/folder_material/folder_RESINE/gray.html
│ config.toml
├───content
│ └───fr
│ │
│ │
│ └───folder_material
│ | _index.md
│ |
│ |_____folder_FDM
│ | _index.md
│ | pla.html
│ |
│ |_____folder_RESINE
│ | _index.md
│ | gray.html
I loop through my pages in my custom layout list.html of the material section using the code below :
{{ range .RegularPages.GroupBy "Section" }}
{{ range .Pages }}
{{ end }}
{{ end }}
It lists the sub content for folder_FDM and folder_RESINE , and that’s great,
but the page /folder_material is empty.
I understand that the folder_material is a branch without any content beside its sub-folders
Now, I really would like to list the 2 sub-sections one for each sub-folders in the folder_material page :
I am trying to make the folder_material/ page
to show the sub sections :
folder_FDM > with link to /folder_FDM
and
folder_RESINE > with link to /folder_RESINE
I tried to make the folder_material a leaf to hard code the data towards the sub-folders (folder_FDM and folder_RESINE), but then the leaf behavior brakes the display that already works for the sub-content in folder_FDM/ and folder_RESINE/
Thanks for any advice.