From 3c62edec208f1666b5853053223669d0e93cf594 Mon Sep 17 00:00:00 2001 From: Emruz Hossain Date: Mon, 16 Aug 2021 23:24:56 +0600 Subject: [PATCH] Fix multiple active menu in taxonomy (#397) Signed-off-by: hossainemruz --- layouts/partials/navigators/taxonomies.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/partials/navigators/taxonomies.html b/layouts/partials/navigators/taxonomies.html index 857646c..5684f61 100644 --- a/layouts/partials/navigators/taxonomies.html +++ b/layouts/partials/navigators/taxonomies.html @@ -1,6 +1,5 @@ {{ $context := .context }} {{ $taxo := .taxo }} -{{ $title := .title }} {{ $class:= "" }} {{ if isset $context.Site.Taxonomies ( lower $taxo ) }} {{ $taxonomy := index $context.Site.Taxonomies ( lower $taxo ) }} @@ -8,6 +7,8 @@ {{ range $taxonomy }} {{if eq $context.Title .Page.Title}} {{ $class = "active" }} + {{else}} + {{$class = ""}} {{end}}
  • {{ .Page.Title }}
  • {{ end }}