mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-25 06:10:40 +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 }}
|