diff --git a/layouts/partials/top.html b/layouts/partials/top.html index 8a2d9cf..53070f3 100644 --- a/layouts/partials/top.html +++ b/layouts/partials/top.html @@ -11,7 +11,8 @@ {{ range .Site.Menus.main }} {{ $isActive := false }} - {{ if or ($.HasMenuCurrent .Menu .) ($.IsMenuCurrent .Menu .) }} + {{/* https://discourse.gohugo.io/t/ismenucurrent-not-working-with-using-sectionpagesmenu/46687/2?u=bbaovanc */}} + {{ if or ($.HasMenuCurrent .Menu .) (eq .Page $) }} {{ $isActive = true }} {{ end }}