Use correct input type for search

This doesn't change functionality but could aid with accessibility and is more semantically correct.
This commit is contained in:
Christian Oliff 2018-12-13 21:59:54 +09:00 committed by GitHub
parent 1d2d7f97a6
commit 3ea5860c3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
<div class="searchbox"> <div class="searchbox">
<label for="search-by"><i class="fas fa-search"></i></label> <label for="search-by"><i class="fas fa-search"></i></label>
<input data-search-input id="search-by" type="text" placeholder="{{T "Search-placeholder"}}"> <input data-search-input id="search-by" type="search" placeholder="{{T "Search-placeholder"}}">
<span data-search-clear=""><i class="fas fa-close"></i></span> <span data-search-clear=""><i class="fas fa-close"></i></span>
</div> </div>
{{ $assetBusting := not .Site.Params.disableAssetsBusting }} {{ $assetBusting := not .Site.Params.disableAssetsBusting }}