Add `placeholder` param to let users customize
placeholder in search input box
This commit is contained in:
parent
8456ad83ae
commit
c437ee1b62
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue