From fde24f7438423f8e0748b5e6e13e14a16030c190 Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Sun, 15 Oct 2023 17:49:56 -0500 Subject: [PATCH] Fix navbar highlighting on section page itself --- layouts/partials/top.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }}