{{ 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?
I have added an _index.md for each sub-section, changed my list.html to {{ partial "summary-recursive" . }} and added this summary-recursive.html in layouts\partials:
{{ range .Data.Pages }}
{{ if not .IsSection }}
{{ .Render "summary" }}
{{ end }}
{{ end }}
{{ if .Sections }}
{{ range .Sections }}
{{ partial "summary-recursive.html" . }}
{{ end }}
{{ end }}