From b86c16766eec3bbbd151629ca5adcf18284e4e4c Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Mon, 31 Aug 2020 11:39:51 -0600 Subject: [PATCH] updated nested menu template to correctly render product tags in v2 --- layouts/partials/sidebar/nested-menu.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }}