summaryrefslogtreecommitdiff
path: root/layouts/_partials/scripts.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-07-27 09:56:40 +0800
committerEltrac <hi@guhub.cn>2025-07-27 09:56:40 +0800
commit50dbd00f57e72c54ed93c54d39a3969769bd4388 (patch)
treec62378f6f4aa0a8b8ff9b71b60d62c502a337719 /layouts/_partials/scripts.html
parent7e7d95f85995d2df66ec47144d16d663eeb3eea0 (diff)
refactor: extract tooltip feature as a global script
Former-commit-id: b64e0b67a1a425bb79055c1e42b12f5807836d66
Diffstat (limited to 'layouts/_partials/scripts.html')
-rw-r--r--layouts/_partials/scripts.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/_partials/scripts.html b/layouts/_partials/scripts.html
index ac62974b..6dc0080b 100644
--- a/layouts/_partials/scripts.html
+++ b/layouts/_partials/scripts.html
@@ -6,3 +6,7 @@
{{ partial "scripts/littlefoot-js" . }}
{{ partial "scripts/fancybox-js" . }}
{{ partial "scripts/aplayer-js" . }}
+
+{{ with resources.Get "js/tooltip.js" }}
+<script>{{ .Content | safeJS }}</script>
+{{ end }}