summaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2020-03-01 00:49:20 +0100
committerAlex Shpak <alex-shpak@users.noreply.github.com>2020-03-01 00:49:34 +0100
commit9c8663eb3475f07880808fe876f82ee39b7c4326 (patch)
tree08380dcba568cff6cb6dab8266564da1a021230d /layouts/partials
parentaa5967140dd7d19064401f4a68fc3fe528bd64c9 (diff)
#155, Do not show collapse indicator in non-section pages
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/docs/menu-filetree.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/docs/menu-filetree.html b/layouts/partials/docs/menu-filetree.html
index 24bf5b5..a367b1a 100644
--- a/layouts/partials/docs/menu-filetree.html
+++ b/layouts/partials/docs/menu-filetree.html
@@ -56,7 +56,7 @@
{{ with .Page }}
{{ if .Content }}
<a href="{{ .RelPermalink }}" class="
- {{- if .Params.bookCollapseSection }}collapsed {{ end }}
+ {{- if and .Params.bookCollapseSection .IsSection }}collapsed {{ end }}
{{- if eq $.CurrentPage . }}active{{ end }}">
{{- partial "docs/title" . -}}
</a>