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
commit0291fc874b7d0706573255d420ab0714d6ea2801 (patch)
treef67d4b9d0825e5892d0113e84861d0b943800baa /layouts/_partials/scripts.html
parentde2ac7227a7d25e50c2f505af6670517499279c0 (diff)
refactor: replace littlefoot.js with injected footnotes use a simple
script to inject each footnote to coresponding paragraph. Former-commit-id: 6e228328877d2405dfc902598a00288a3f3e4d19
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" . }}