mirror of https://github.com/onweru/compose.git

weru
21.23.2023 1c0faaf49242a3e51d0dd63ea0bc2444ce13ab37
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{{ if .Site.Params.enableSearch | default true }}
<div class="search">
  <label for="find" class="search_label">
    {{- partial "sprite" (dict "icon" "search") }}
  </label>
  {{ $placeholder := T "search_field_placeholder" (dict "section" .Section) }}
  {{ if .Section }}
  {{ else }}
    {{ $placeholder =  printf "%s%s" $placeholder (T "site") }}
  {{ end }}
  <input type="search" class="search_field  standardize-input" placeholder="{{ $placeholder }}" id="find" autocomplete="off"  data-scope='{{ .Section }}'>
  {{- if ne .Params.searchPage true }}
  <div class="search_results results"></div>
  {{- end }}
</div>
{{ end }}