Is there a way to get Hugo to understand a deeper site structure than say eg. /section?
This is roughly the structure I’d like to achieve; /section.md /section/subsection1.md /section/subsection1/page1.md /section/subsection1/page2.md /section/subsection2.md /section/subsection2/page1.md
When visiting /section, the user would be presented with the content of /section.md together with links to subsection1 and subsection2.
When visiting /section/subsection1, content of /section/subsection1.md together with links to page1 and page2.
Update: I just read about the new menu in 0.14. If there were a way to automatically create a menu based on the directory tree, wouldn’t it then be possible to list all children of the current active menu item?
#/layouts/taxonomy/gallery.html
<h1> trip <N> index </h1>
this turns into your index page of all your posts for trip <N>
accessible at http://localhost/gallery/trip-n/
{{ printf "%#v" . }}
#/layouts/section/gallery.html
<h1> all trips show up here </h1>
this turns into your index page of all your trips
accessible at http://localhost/gallery/
{{ printf "%#v" . }}