forked from TrueCloudLab/distribution
e2ae76f1f2
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
6 lines
396 B
HTML
6 lines
396 B
HTML
{{ if default true .Site.Params.geekdocSearch }}
|
|
<script defer src="{{ index (index .Site.Data.assets "search.js") "src" | relURL }}"></script>
|
|
{{- $searchConfigFile := printf "search/%s.config.json" .Language.Lang -}}
|
|
{{- $searchConfig := resources.Get "search/config.json" | resources.ExecuteAsTemplate $searchConfigFile . | resources.Minify -}}
|
|
{{- $searchConfig.Publish -}}
|
|
{{ end }}
|