I’ve structured my Hugo project this way:
content
└─ blog
└─ 2022
├─ 06
│ └─ a.md
└─ 07
└─ b.md
layouts
└─ _default
└─ list.html
My list.html says:
{{ range .Data.Pages }}
{{ .Render "summary" }}
{{ end }}
My config.yaml says:
permalinks:
blog: /blog/:year/:month/:slug/
As expected, a.md appears under example.org/blog/2022/06/a/ and b.md under example.org/blog/2022/07/b/.
Also, list.html is applied to the blog section so that under example.org/blog a list appears that includes both a.md and b.md. However, this doesn’t work for any of the sub-sections.
Why is that? Do I have to manually set up an _index.md file for each sub-section to let the visitor browse example.org/blog/2022, example.org/blog/2022/06 and example.org/2022/07?
Thank you!