mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-05-13 14:44:28 -04:00
Add placeholder
param to let users customize
placeholder in search input box
This commit is contained in:
parent
8456ad83ae
commit
c437ee1b62
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div id="searchbox">
|
<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>
|
<ul id="searchResults" aria-label="search results"></ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue