ask to enable js for search

This commit is contained in:
Wonderfall 2022-07-30 17:48:00 +02:00
parent 67efb771bf
commit 4f5eea2395

View File

@ -24,6 +24,14 @@
<input id="searchInput" autofocus placeholder="{{ .Params.placeholder | default (printf "%s " .Title) }}"
aria-label="search" type="search" autocomplete="off">
<ul id="searchResults" aria-label="search results"></ul>
<noscript>
<style>
#searchInput {
display: none;
}
</style>
Enable JavaScript to use the search function.
</noscript>
</div>
{{- end }}{{/* end main */}}