From 95e6bf1e135b4acaf4b14b6ae9592d968bbfc231 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Tue, 13 Oct 2020 18:17:39 +0530 Subject: [PATCH] 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 --- layouts/_default/list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 0b2f0f3c..ebe7b0d4 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -10,7 +10,7 @@ {{- end }} -{{- $pages := .RegularPages }} +{{- $pages := union .RegularPages .Sections }} {{- if .IsHome }} {{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }}