2020-02-27 12:17:21 +00:00
|
|
|
{{ if default true .Site.Params.GeekdocSearch }}
|
|
|
|
{{ .Scratch.Set "geekdocSearchConfig" .Site.Params.GeekdocSearchConfig }}
|
|
|
|
<!-- Remove after https://github.com/gohugoio/hugo/issues/6331 -->
|
|
|
|
{{ $searchJSFile := printf "js/%s.search.js" .Language.Lang }}
|
2020-11-09 21:21:50 +00:00
|
|
|
{{ $searchJS := resources.Get "js/search.js" | resources.ExecuteAsTemplate $searchJSFile . | resources.Minify | fingerprint }}
|
2020-02-27 12:17:21 +00:00
|
|
|
<script defer src="{{ $searchJS.RelPermalink }}"></script>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ if default true .Site.Params.GeekdocAnchorCopy }}
|
2020-11-09 21:21:50 +00:00
|
|
|
<script defer src="{{ index .Site.Data.assets "js/clipboard.min.js" | relURL }}"></script>
|
2021-05-21 09:33:17 +00:00
|
|
|
<script defer src="{{ index .Site.Data.assets "js/clipboard-loader.min.js" | relURL }}"></script>
|
2020-02-27 12:17:21 +00:00
|
|
|
{{ end }}
|
2021-11-07 21:12:14 +00:00
|
|
|
|
|
|
|
<script defer src="{{ index .Site.Data.assets "js/copycode.min.js" | relURL }}"></script>
|