website/layouts/partials/search-input.html

30 lines
887 B
HTML

{{ if or .Site.Params.gcs_engine_id .Site.Params.algolia_docsearch }}
<input
type="search"
class="form-control td-search-input"
placeholder="&#xf002; {{ T "ui_search_placeholder" }}"
aria-label="{{ T "ui_search_placeholder" }}"
autocomplete="off"
>
{{ else if .Site.Params.offlineSearch }}
<div id="search-nav-container">
<input
type="search"
id="search-input"
autocomplete="off"
class="form-control td-search-input"
placeholder="&#xf002 {{ T "ui_search_placeholder" }}"
autocomplete="off"
>
<div id="search-results" class="container"></div>
</div>
{{ else if .Site.Params.k8s_search }}
<input
type="search"
class="form-control td-search-input"
name="q"
placeholder="&#xf002 {{ T "ui_search_placeholder" }}"
aria-label="{{ T "ui_search_placeholder" }}"
autocomplete="off"
>
{{ end }}