diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-16 21:49:49 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-16 21:49:57 +0200 |
| commit | 658bde848b4eefb16e0ecdb68de233677e39d5c9 (patch) | |
| tree | f1bd68d54d58f79584afd0d0b33457974f090f2b /layouts | |
| parent | f7da3e0b6db22a316140f41b012401868c6d28e9 (diff) | |
| download | gohugo-theme-ed-658bde848b4eefb16e0ecdb68de233677e39d5c9.tar.gz | |
Improve search form elements
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/shortcodes/form-search.html | 14 |
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> |
