Nedjma Média
Nedjma Média

Reputation: 57

How to list sub folder of section on hugo

How to list the subfolders of sections on an HTML page in Hugo for now I use the list.html file of the section

Upvotes: 2

Views: 875

Answers (1)

Mr. Hugo
Mr. Hugo

Reputation: 12590

I think you can use {{ .Pages }} to list all RegularPages and all list pages (direct children). However, if you are looking for a nested menu partial, take a look at this one:

https://hugocodex.org/add-ons/nested-menu/

Upvotes: 1

Related Questions