diff --git a/site/layouts/partials/tree.html b/site/layouts/partials/tree.html index 6c00cd7c7..e5a1f5fce 100644 --- a/site/layouts/partials/tree.html +++ b/site/layouts/partials/tree.html @@ -1,41 +1,38 @@
- - + +
+ {{ define "treemenu" }} {{ $nextDepth := add .depth 1 }} {{- $activeLink := $.root.Permalink }} {{- $className := "" }} {{- $deprecated := true }} + {{- $expand := .expand }} {{- with $.root.Site.GetPage .url }} {{- if not .Params.deprecated }} {{- $deprecated = false }} {{- $branchLink := .Permalink }} - {{- if in $activeLink $branchLink }} - {{- $className = "tree-branch-active" -}} - {{ end }} - {{- if eq $activeLink $branchLink }} - {{- $className = "tree-active tree-branch-active" -}} - {{- end -}}
  • {{ .Title }} {{- end }} {{- end }} + {{- if not $deprecated }} -