diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-10-13 18:17:39 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-10-13 18:17:39 +0530 |
| commit | 95e6bf1e135b4acaf4b14b6ae9592d968bbfc231 (patch) | |
| tree | ff84ae9e8754f01df91a1ea50483a9e12c76c52d /layouts/_default/list.html | |
| parent | 0a0d75667181dfd391731330a9c98b90f55363c9 (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/list.html')
| -rw-r--r-- | layouts/_default/list.html | 2 |
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 }} |
