Add placeholder param to let users customize

placeholder in search input box
This commit is contained in:
Aditya Telange 2021-09-05 18:22:24 +05:30
parent 8456ad83ae
commit c437ee1b62
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77

View File

@ -21,7 +21,7 @@
</header>
<div id="searchbox">
<input id="searchInput" autofocus placeholder="{{ .Title }} ↵" aria-label="search" type="search">
<input id="searchInput" autofocus placeholder="{{ .Params.placeholder | default (printf "%s " .Title) }}" aria-label="search" type="search">
<ul id="searchResults" aria-label="search results"></ul>
</div>