list: show nested sections

* shows links to section if _index.md is present
* by this sub-sections can be distinguished properly
* more about this and way to implement: https://gohugo.io/content-management/organization/#index-pages-_indexmd
This commit is contained in:
Aditya Telange 2020-10-13 18:17:39 +05:30
parent 0a0d756671
commit 95e6bf1e13
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77

View File

@ -10,7 +10,7 @@
</header>
{{- end }}
{{- $pages := .RegularPages }}
{{- $pages := union .RegularPages .Sections }}
{{- if .IsHome }}
{{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }}