1
0
mirror of https://gitlab.com/MisterBiggs/brain-quartz.git synced 2025-08-03 04:01:30 +00:00

feat: contextual backlinks (closes #106)

This commit is contained in:
Jacky Zhao
2022-05-05 00:58:50 -04:00
parent 6e6dd4cb0b
commit cea0f3eb74
7 changed files with 101 additions and 66 deletions

View File

@@ -2,6 +2,7 @@
{{ $js := resources.Get "js/popover.js" | resources.Fingerprint "md5" | resources.Minify }}
<script src="{{ $js.Permalink }}"></script>
<script>
initPopover({{strings.TrimRight "/" .Site.BaseURL }})
const useContextual = {{ $.Site.Data.config.enableContextualBacklinks }}
initPopover({{strings.TrimRight "/" .Site.BaseURL }}, useContextual)
</script>
{{end}}
{{end}}