hugo-geekdoc/layouts/partials/foot.html

7 lines
396 B
HTML
Raw Permalink Normal View History

{{ if default true .Site.Params.geekdocSearch }}
2022-01-06 21:52:22 +00:00
<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 -}}
2022-01-06 22:16:21 +00:00
{{- $searchConfig.Publish -}}
2020-02-27 12:17:21 +00:00
{{ end }}