diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 503f0ab..51773ed 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -111,7 +111,7 @@ {{- range .Site.Menus.main }} {{- $menu_item_url := (cond (strings.HasSuffix .URL "/") .URL (printf "%s/" .URL) ) | absLangURL }} {{- $page_url:= $currentPage.Permalink | absLangURL }} - {{- $is_search := eq ($.Site.GetPage .Name).Layout `search` }} + {{- $is_search := eq ($.Site.GetPage .KeyName).Layout `search` }}