mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-26 13:26:22 +00:00
8 lines
354 B
HTML
8 lines
354 B
HTML
{{if $.Site.Data.config.enableLinkPreview}}
|
|
{{ $js := resources.Get "js/popover.js" | resources.Fingerprint "md5" | resources.Minify }}
|
|
<script src="{{ $js.Permalink }}"></script>
|
|
<script>
|
|
const useContextual = {{ $.Site.Data.config.enableContextualBacklinks }}
|
|
initPopover({{strings.TrimRight "/" .Site.BaseURL }}, useContextual)
|
|
</script>
|
|
{{end}}
|