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