summaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
authorAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-10-13 18:17:39 +0530
committerAditya Telange <21258296+adityatelange@users.noreply.github.com>2020-10-13 18:17:39 +0530
commit95e6bf1e135b4acaf4b14b6ae9592d968bbfc231 (patch)
treeff84ae9e8754f01df91a1ea50483a9e12c76c52d /layouts/_default
parent0a0d75667181dfd391731330a9c98b90f55363c9 (diff)
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
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/list.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 0b2f0f3..ebe7b0d 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -10,7 +10,7 @@
</header>
{{- end }}
-{{- $pages := .RegularPages }}
+{{- $pages := union .RegularPages .Sections }}
{{- if .IsHome }}
{{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }}