diff --git a/themes/geekboot/layouts/partials/docs-sidebar.html b/themes/geekboot/layouts/partials/docs-sidebar.html index 46cf7feb..ee2e229c 100644 --- a/themes/geekboot/layouts/partials/docs-sidebar.html +++ b/themes/geekboot/layouts/partials/docs-sidebar.html @@ -1,67 +1,41 @@ {{ $current := . }} -{{ $version_section := (where .Site.Sections ".Page.Params.version" .Page.Params.version) }} + - -{{ define "sidebar-nav" }} - {{ $id := "" }} - {{ if not .id }} - {{ $id = substr (sha1 .thisPage.Permalink) 0 8 }} - {{ else }} - {{ $id = .id }} - {{ end }} - {{ $isParent := (and (ne .childPages nil) (ne (len .childPages) 0)) }} - {{ $isCurrent := eq .current .thisPage }} - {{ $expand := false }} - {{ if .expand }} - {{ $expand = .expand }} - {{ end }} - {{ if or $isCurrent (eq .thisPage .current.Parent) }} - {{ $expand = true }} - {{ end }} -
- {{ if $isParent }} - - {{ template "sidebar-nav" dict "childPages" .Pages "current" .current "thisPage" . "id" $id "expand" $expand}} - {{ else }} -
-
- {{ $current := .current }} - {{ range .thisPage.childPages }} - - {{ end }} -
-
+ {{ end }} {{ end }} -
-{{ end }} + {{ end }} + \ No newline at end of file