From 1bc2c744ff4744ab55cf946ca6106894d612c69b Mon Sep 17 00:00:00 2001 From: zzossig Date: Thu, 2 Jan 2020 16:28:37 +0900 Subject: [PATCH] navbar menu highlight when in single page --- layouts/partials/navbar/site-nav.html | 1 + 1 file changed, 1 insertion(+) diff --git a/layouts/partials/navbar/site-nav.html b/layouts/partials/navbar/site-nav.html index bd02ec3..df0a575 100644 --- a/layouts/partials/navbar/site-nav.html +++ b/layouts/partials/navbar/site-nav.html @@ -26,6 +26,7 @@ {{ $active := or ($current.IsMenuCurrent "main" .) ($current.HasMenuCurrent "main" .) }} {{ $active = or $active (eq .Name $current.Title) }} {{ $active = or $active (eq (lower .URL) (lower $current.Title)) }} + {{ $active = or $active (eq (lower .URL) (lower $current.Type)) }} {{ if .HasChildren }}