b104d6ac70
BREAKING CHANGE: The class `.icon` was renamed to `.gdoc-icon` to avoid conflicts.
17 lines
632 B
HTML
17 lines
632 B
HTML
{{ if default true .Site.Params.GeekdocSearch }}
|
|
<div class="gdoc-search">
|
|
<svg class="gdoc-icon gdoc_search"><use xlink:href="#gdoc_search"></use></svg>
|
|
<input
|
|
type="text"
|
|
id="gdoc-search-input"
|
|
class="gdoc-search__input"
|
|
placeholder="{{ i18n "form_placeholder_search" }}"
|
|
aria-label="{{ i18n "form_placeholder_search" }}"
|
|
maxlength="64"
|
|
data-site-base-url="{{ .Site.BaseURL }}"
|
|
data-site-lang="{{ .Site.Language.Lang }}"
|
|
/>
|
|
<div class="gdoc-search__spinner spinner hidden"></div>
|
|
<ul id="gdoc-search-results" class="gdoc-search__list"></ul>
|
|
</div>
|
|
{{ end }}
|