2020-02-27 04:17:21 -08:00
|
|
|
{{ if default true .Site.Params.GeekdocSearch }}
|
2022-01-06 13:52:22 -08:00
|
|
|
<script defer src="{{ index (index .Site.Data.assets "search.js") "src" | relURL }}"></script>
|
2022-01-23 04:21:44 -08:00
|
|
|
{{- $searchConfigFile := printf "search/%s.config.json" .Language.Lang -}}
|
|
|
|
{{- $searchConfig := resources.Get "search/config.json" | resources.ExecuteAsTemplate $searchConfigFile . | resources.Minify -}}
|
2022-01-06 14:16:21 -08:00
|
|
|
{{- $searchConfig.Publish -}}
|
2020-02-27 04:17:21 -08:00
|
|
|
{{ end }}
|