From b4933eadd65f922cad20e5f9da68ef645564ebfe Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Fri, 18 Dec 2020 22:50:04 +0530 Subject: [PATCH] header: use .KeyName for accesskey search in menu - .Name doesn't work with emojis - .URL doesn't work with url such as 'search/' --- layouts/partials/header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 503f0abe..51773ed8 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` }}