summaryrefslogtreecommitdiff
path: root/layouts/_partials/scripts.html
diff options
context:
space:
mode:
authorBigCoke233 <hi@guhub.cn>2026-01-17 00:00:27 +0800
committerBigCoke233 <hi@guhub.cn>2026-01-17 00:00:27 +0800
commite52bd5a9c99c5e769f039e794572e028619ba53e (patch)
tree11d7e1ba16f33b8dbe994aa510fad110161dbd0a /layouts/_partials/scripts.html
parentbcd509c540632b6524a8dd87a4613e64ed0402f6 (diff)
perf: use instantpage.js to improve page speed
Diffstat (limited to 'layouts/_partials/scripts.html')
-rw-r--r--layouts/_partials/scripts.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/layouts/_partials/scripts.html b/layouts/_partials/scripts.html
index b1e9aa2e..878ac01e 100644
--- a/layouts/_partials/scripts.html
+++ b/layouts/_partials/scripts.html
@@ -1,8 +1,17 @@
{{ with resources.Get "js/tooltip.js" }}
+<!-- tooltip by Eltrac -->
<script>{{ .Content | safeJS }}</script>
{{ end }}
+{{ if not .IsHome }}
{{ with resources.Get "js/inject-footnotes.js" }}
+<!-- inject footnotes by Eltrac -->
+<script>{{ .Content | safeJS }}</script>
+{{ end }}
+{{ end }}
+
+{{ with resources.Get "js/instantpage.js" }}
+<!-- instantpage.js -->
<script>{{ .Content | safeJS }}</script>
{{ end }}