From 8665d9052697293702c0edeca77806d53afea928 Mon Sep 17 00:00:00 2001 From: Alessandro Bahgat Date: Sun, 21 Jul 2019 09:11:05 -0400 Subject: [PATCH 1/2] Remove search-query id from 404 input. Search query is propagated via the q parameter being added to the query string when users hit enter. The only reference to #search-query I found is for styling when dark theme is enabled. The search widget on the page has the right background color even when removing the id. --- layouts/404.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/404.html b/layouts/404.html index 404df1b9..d06ab005 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -7,7 +7,7 @@ {{/* Show search box if Academic's search engine is enabled. */}} {{ if eq site.Params.search.engine 1 }}
- +
{{ end }} From f61752e70f5d092db180b9ebacb59570d00f3fd8 Mon Sep 17 00:00:00 2001 From: Alessandro Bahgat Date: Sun, 21 Jul 2019 09:54:56 -0400 Subject: [PATCH 2/2] Remove search-query from searchbox in docs layout. --- layouts/partials/docs_sidebar.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/docs_sidebar.html b/layouts/partials/docs_sidebar.html index 08e5ab15..4039603c 100644 --- a/layouts/partials/docs_sidebar.html +++ b/layouts/partials/docs_sidebar.html @@ -12,7 +12,7 @@ {{ if eq site.Params.search.engine 1 }} - + {{ end }}