summaryrefslogtreecommitdiffstats
path: root/layouts/shortcodes/form-search.html
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-07-16 21:49:49 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-07-16 21:49:57 +0200
commit658bde848b4eefb16e0ecdb68de233677e39d5c9 (patch)
treef1bd68d54d58f79584afd0d0b33457974f090f2b /layouts/shortcodes/form-search.html
parentf7da3e0b6db22a316140f41b012401868c6d28e9 (diff)
downloadgohugo-theme-ed-658bde848b4eefb16e0ecdb68de233677e39d5c9.tar.gz
Improve search form elements
Diffstat (limited to 'layouts/shortcodes/form-search.html')
-rw-r--r--layouts/shortcodes/form-search.html14
1 files changed, 12 insertions, 2 deletions
diff --git a/layouts/shortcodes/form-search.html b/layouts/shortcodes/form-search.html
index f35a876..403d808 100644
--- a/layouts/shortcodes/form-search.html
+++ b/layouts/shortcodes/form-search.html
@@ -1,9 +1,19 @@
<div id="site-search" class="search-form">
<p>{{ i18n "search_help" }}</p>
- <form role="form" id="search-form">
+ <form role="search" id="search-form">
<div class="search-wrapper">
<div class="search-container form-item">
- <input autocomplete="off" placeholder="" id="search" class="search-form-input form-input" aria-label="{{ i18n "search_site" }}" type="text" name="q">
+ <input
+ autofocus
+ autocomplete="off"
+ spellcheck="false"
+ placeholder=""
+ class="search-form-input form-input"
+ aria-label="{{ i18n "search_site" }}"
+ type="search"
+ id="search"
+ name="search"
+ maxlength="128">
</div>
<div class="search-error hide-element">
<p class="search-error-message"></p>