2023-12-27 08:30:52 +00:00
|
|
|
{{ if or .Site.Params.gcs_engine_id .Site.Params.algolia_docsearch }}
|
|
|
|
<div class="search-bar">
|
|
|
|
<i class="search-icon fas fa-search"></i>
|
|
|
|
<input
|
|
|
|
type="search"
|
|
|
|
class="search-input td-search-input"
|
|
|
|
placeholder="{{ T "ui_search_placeholder" }}"
|
|
|
|
aria-label="{{ T "ui_search_placeholder" }}"
|
|
|
|
autocomplete="off"
|
|
|
|
>
|
|
|
|
</div>
|
|
|
|
{{ else if .Site.Params.offlineSearch }}
|
|
|
|
<div class="search-bar" id="search-nav-container">
|
|
|
|
<i class="search-icon fas fa-search"></i>
|
|
|
|
<input
|
|
|
|
type="search"
|
|
|
|
class="search-input td-search-input"
|
|
|
|
id="search-input"
|
|
|
|
placeholder="{{ T "ui_search_placeholder" }}"
|
|
|
|
aria-label="{{ T "ui_search_placeholder" }}"
|
|
|
|
autocomplete="off"
|
|
|
|
>
|
|
|
|
</div>
|
|
|
|
{{ else if .Site.Params.k8s_search }}
|
2024-06-10 07:27:06 +00:00
|
|
|
|
|
|
|
{{ $lang := .Site.Language.Lang }}
|
|
|
|
{{ $searchFile := printf "content/%s/search.md" $lang }}
|
|
|
|
|
2023-12-27 08:30:52 +00:00
|
|
|
<div class="search-bar">
|
|
|
|
<i class="search-icon fas fa-search"></i>
|
|
|
|
<input
|
|
|
|
type="search"
|
|
|
|
name="q"
|
2024-06-10 07:27:06 +00:00
|
|
|
{{ if fileExists $searchFile }}
|
|
|
|
data-search-page="{{ "search/" | relLangURL }}"
|
|
|
|
{{ else }}
|
|
|
|
data-search-page="{{ "search/" | relURL }}"
|
|
|
|
{{ end }}
|
2023-12-27 08:30:52 +00:00
|
|
|
class="search-input td-search-input"
|
|
|
|
placeholder="{{ T "ui_search_placeholder" }}"
|
|
|
|
aria-label="{{ T "ui_search_placeholder" }}"
|
|
|
|
autocomplete="off"
|
|
|
|
>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|