diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 2543e9c4..8b1fd10b 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -12,7 +12,8 @@ {{- end -}} {{ with .Site.Menus.main }} {{ range . }} - + {{ $active := or (eq $current.RelPermalink .URL) (or ($current.HasMenuCurrent "main" .) ($current.IsMenuCurrent "main" .)) }} + {{ end }} {{ end }}