mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-16 18:00:39 +00:00
6 lines
322 B
HTML
6 lines
322 B
HTML
{{ if default true .Site.Params.GeekdocSearch }}
|
|
<script defer src="{{ index (index .Site.Data.assets "search.js") "src" | relURL }}"></script>
|
|
{{- $searchConfig := resources.Get "search/config.json" | resources.ExecuteAsTemplate "search/config.json" . | resources.Minify -}}
|
|
{{- $searchConfig.Publish -}}
|
|
{{ end }}
|