diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2021-09-05 18:22:24 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2021-09-05 18:22:24 +0530 |
| commit | c437ee1b62961a80249c5848dacd10c700b16293 (patch) | |
| tree | 90ba84238acba3df98d6d5d56ed113d1f1373cfd /layouts/_default | |
| parent | 8456ad83ae93d4522df4aca50684e19527095078 (diff) | |
Add `placeholder` param to let users customize
placeholder in search input box
Diffstat (limited to 'layouts/_default')
| -rw-r--r-- | layouts/_default/search.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/search.html b/layouts/_default/search.html index e916da1..4c6ab05 100644 --- a/layouts/_default/search.html +++ b/layouts/_default/search.html @@ -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> |
