diff --git a/layouts/partials/paige/site-header.html b/layouts/partials/paige/site-header.html
index 6141797b..d1e6e218 100644
--- a/layouts/partials/paige/site-header.html
+++ b/layouts/partials/paige/site-header.html
@@ -52,9 +52,11 @@
{{ range . }}
{{ $menupath := strings.TrimPrefix $basepath .URL }}
+
{{ $home := and (eq $menupath "/") (eq $pagepath "/") }}
{{ $menuprefix := and (ne $menupath "/") (hasPrefix $pagepath $menupath) }}
{{ $sectionprefix := and (ne $menupath "/") (hasPrefix $menupath (printf "/%s/" $page.Section)) }}
+
{{ $active := or $home $menuprefix $sectionprefix }}
-
@@ -112,9 +114,11 @@
{{ range $ordered }}
{{ $menupath := strings.TrimPrefix $basepath .RelPermalink }}
+
{{ $home := and (eq $menupath "/") (eq $pagepath "/") }}
{{ $menuprefix := and (ne $menupath "/") (hasPrefix $pagepath $menupath) }}
{{ $sectionprefix := and (ne $menupath "/") (hasPrefix $menupath (printf "/%s/" $page.Section)) }}
+
{{ $active := or $home $menuprefix $sectionprefix }}
-