#155, Do not show collapse indicator in non-section pages

This commit is contained in:
Alex Shpak 2020-03-01 00:49:20 +01:00
parent aa5967140d
commit 9c8663eb34

View file

@ -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>