diff --git a/layouts/partials/site-header.html b/layouts/partials/site-header.html
index 6d4204d..786614a 100644
--- a/layouts/partials/site-header.html
+++ b/layouts/partials/site-header.html
@@ -9,7 +9,7 @@
{{$.Site.Title}}
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
{{ if .HasChildren }}
- {{ $active := or (eq $.URL .URL) (or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .)) }}
+ {{ $active := or (eq $.RelPermalink .URL) (or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .)) }}
{{ .Pre }}
@@ -17,25 +17,25 @@ {{$.Site.Title}}
{{ .Post }}
{{ else }}
- {{ $active := or (eq $.URL .URL) (or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .)) }}
+ {{ $active := or (eq $.RelPermalink .URL) (or ($currentPage.HasMenuCurrent "main" .) ($currentPage.IsMenuCurrent "main" .)) }}
- {{ .Pre }}
- {{ .Name }}
- {{ .Post }}
+ {{ .Pre }}
+ {{ .Name }}
+ {{ .Post }}
-
+
{{ end }}
{{ end }}
-
+
-
\ No newline at end of file
+