diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 4420c71..1f8262f 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -150,19 +150,13 @@ > {{- .title -}} {{- with .context }} - {{- if or .RegularPages .Sections }} - - {{- template "sidebear-collapsible-button" -}} - - {{- end }} + {{- if or .RegularPages .Sections }}{{ partialCached "sidebear-collapsible-button" . }}{{ end -}} {{ end -}} {{- end -}} -{{- define "sidebar-separator" -}} -
-{{- end -}} - -{{- define "sidebear-collapsible-button" -}} - +{{- define "partials/sidebear-collapsible-button" -}} + + + {{- end -}}