mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 00:14:05 +00:00
Remove search-query id from 404 input. (#1216)
* 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. * Remove search-query from searchbox in docs layout.
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -7,7 +7,7 @@
|
||||
{{/* Show search box if Academic's search engine is enabled. */}}
|
||||
{{ if eq site.Params.search.engine 1 }}
|
||||
<form class="d-flex align-items-center mb-3">
|
||||
<input name="q" type="search" class="form-control" id="search-query" placeholder="{{ i18n "search_placeholder" }}" autocomplete="off">
|
||||
<input name="q" type="search" class="form-control" placeholder="{{ i18n "search_placeholder" }}" autocomplete="off">
|
||||
</form>
|
||||
{{ end }}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
</button>
|
||||
|
||||
{{ if eq site.Params.search.engine 1 }}
|
||||
<input name="q" type="search" class="form-control" id="search-query" placeholder="{{ i18n "search_placeholder" }}" autocomplete="off">
|
||||
<input name="q" type="search" class="form-control" placeholder="{{ i18n "search_placeholder" }}" autocomplete="off">
|
||||
{{ end }}
|
||||
</form>
|
||||
|
||||
|
||||
Reference in new issue
Block a user