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