diff --git a/layouts/partials/paige/menu.html b/layouts/partials/paige/menu.html index ab71dbc9..3ee8b652 100644 --- a/layouts/partials/paige/menu.html +++ b/layouts/partials/paige/menu.html @@ -23,7 +23,7 @@ {{ range .Site.Menus.main }} {{ $pagePath := strings.TrimPrefix $basepath $.RelPermalink }} {{ $menuPath := strings.TrimPrefix $basepath .URL }} - {{ $active := or (and (eq $menuPath `/`) (eq $pagePath `/`)) (and (ne $menuPath `/`) (hasPrefix $pagePath $menuPath)) }} + {{ $active := or (and (eq $menuPath "/") (eq $pagePath "/")) (and (ne $menuPath "/") (hasPrefix $pagePath $menuPath)) }} {{ .Name }} {{ end }}