mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-24 13:50:40 +00:00
17 lines
711 B
HTML
17 lines
711 B
HTML
{{ 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 }}
|
|
{{ $searchJS := resources.Get "js/search.js" | resources.ExecuteAsTemplate $searchJSFile . | resources.Minify }}
|
|
<script defer src="{{ $searchJS.RelPermalink }}"></script>
|
|
{{ end }}
|
|
|
|
{{ if default true .Site.Params.GeekdocAnchorCopy }}
|
|
<script defer src="{{ "js/clipboard.min.js" | relURL }}"></script>
|
|
<script>
|
|
document.addEventListener("DOMContentLoaded", function(event) {
|
|
var clipboard = new ClipboardJS('.clip');
|
|
});
|
|
</script>
|
|
{{ end }}
|