diff --git a/layouts/partials/sidebar/nested-menu.html b/layouts/partials/sidebar/nested-menu.html index ab715a466..792ef5071 100644 --- a/layouts/partials/sidebar/nested-menu.html +++ b/layouts/partials/sidebar/nested-menu.html @@ -1,6 +1,6 @@ -{{ $isV2 := cond (in .RelPermalink "/v2.") true false }} {{ $page := .page }} {{ $menu := .menu }} +{{ $isV2 := cond (in $page.RelPermalink "/v2.") true false }} {{ define "productTag" }} {{ if and (.Page.Params.products) (not .Page.Parent.Params.products) }}{{ range .Page.Params.products }}{{ end }}{{ end }} @@ -9,7 +9,7 @@ {{ range $menu }}