mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-21 18:11:37 +01:00
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:
parent
0a0d756671
commit
95e6bf1e13
@ -10,7 +10,7 @@
|
||||
</header>
|
||||
{{- end }}
|
||||
|
||||
{{- $pages := .RegularPages }}
|
||||
{{- $pages := union .RegularPages .Sections }}
|
||||
|
||||
{{- if .IsHome }}
|
||||
{{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }}
|
||||
|
Loading…
Reference in New Issue
Block a user