all repos — searchix @ d6e117bb9aeb2bae23dedd51b59b6e6f139e8a4f

Search engine for NixOS, nix-darwin, home-manager and NUR users

frontend/templates/blocks/search.gotmpl (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{{- define "main" }}
  <form id="search">
    <label for="query">{{ .Source.Name }} option search</label>
    <fieldset>
      <input id="query" name="query" type="search" value="{{ .Query }}" />
      <button>Search</button>
    </fieldset>
  </form>
  {{- if .Results }}
    {{ block "results" . }}{{ end }}
  {{- end }}
{{- end }}

{{- define "head" }}
  <script src="/static/search.js" defer></script>
{{- end }}