diff --git a/config/_default/params.toml b/config/_default/params.toml
index d1708ca..4cde9cb 100644
--- a/config/_default/params.toml
+++ b/config/_default/params.toml
@@ -92,7 +92,6 @@ mainSections = ["docs"]
docsVersioning = false
[menu]
-
[menu.section]
- auto = false
- collapsibleSidebar = false
+ auto = true
+ collapsibleSidebar = true
diff --git a/layouts/partials/sidebar/docs-menu.html b/layouts/partials/sidebar/docs-menu.html
index 2d73be4..299b0ef 100644
--- a/layouts/partials/sidebar/docs-menu.html
+++ b/layouts/partials/sidebar/docs-menu.html
@@ -125,15 +125,41 @@
{{ $currentPage := . -}}
{{ range .Site.Menus.docs -}}
-
{{ .Name }}
+ {{ .Name }}
{{ if .HasChildren -}}
-
- {{ range .Children -}}
- {{- $active := or ($currentPage.IsMenuCurrent "docs" .) ($currentPage.HasMenuCurrent "docs" .) -}}
- {{- $active = or $active (eq $currentPage.Section .Identifier) -}}
- - {{ .Name }}
- {{ end -}}
-
+
+ {{ range .Children -}}
+ {{ if .HasChildren -}}
+ {{ .Name }}
+ {{ if .HasChildren -}}
+
+ {{ range .Children -}}
+ {{ if .HasChildren -}}
+ {{ .Name }}
+ {{ if .HasChildren -}}
+
+ {{ range .Children -}}
+ {{- $active := or ($currentPage.IsMenuCurrent "docs" .) ($currentPage.HasMenuCurrent "docs" .) -}}
+ {{- $active = or $active (eq $currentPage.Section .Identifier) -}}
+ - {{ .Name }}
+ {{ end -}}
+
+ {{ end -}}
+ {{ else -}}
+ {{- $active := or ($currentPage.IsMenuCurrent "docs" .) ($currentPage.HasMenuCurrent "docs" .) -}}
+ {{- $active = or $active (eq $currentPage.Section .Identifier) -}}
+ - {{ .Name }}
+ {{ end -}}
+ {{ end -}}
+
+ {{ end -}}
+ {{ else -}}
+ {{- $active := or ($currentPage.IsMenuCurrent "docs" .) ($currentPage.HasMenuCurrent "docs" .) -}}
+ {{- $active = or $active (eq $currentPage.Section .Identifier) -}}
+ - {{ .Name }}
+ {{ end -}}
+ {{ end -}}
+
{{ end -}}
{{ end -}}
{{ end -}}