summaryrefslogtreecommitdiff
path: root/layouts/_partials/scripts.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-10-25 15:15:49 +0800
committerEltrac <hi@guhub.cn>2025-10-25 15:15:49 +0800
commit6e228328877d2405dfc902598a00288a3f3e4d19 (patch)
tree65ec02a614009f8b18adaa8b1c9880d343935056 /layouts/_partials/scripts.html
parent6ec981733f09cc67c6afdb51a79e0360ef3b8f70 (diff)
refactor: replace littlefoot.js with injected footnotes use a simple
script to inject each footnote to coresponding paragraph.
Diffstat (limited to 'layouts/_partials/scripts.html')
-rw-r--r--layouts/_partials/scripts.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/layouts/_partials/scripts.html b/layouts/_partials/scripts.html
index 87243f76..59fc6b85 100644
--- a/layouts/_partials/scripts.html
+++ b/layouts/_partials/scripts.html
@@ -2,7 +2,10 @@
<script>{{ .Content | safeJS }}</script>
{{ end }}
+{{ with resources.Get "js/inject-footnotes.js" }}
+<script>{{ .Content | safeJS }}</script>
+{{ end }}
+
{{ partial "scripts/toc-js" . }}
-{{ partial "scripts/littlefoot-js" . }}
{{ partial "scripts/libra-js" . }}
{{ partial "scripts/aplayer-js" . }}