mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-22 12:50:40 +00:00
7 lines
396 B
HTML
7 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 }}
|