diff options
| author | BigCoke233 <hi@guhub.cn> | 2026-01-17 00:00:27 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2026-01-17 00:00:27 +0800 |
| commit | 0f27b0a56d069d38998934df9b0c41b8a18c68d7 (patch) | |
| tree | 610ab8b90f385c2ca6b7098a21d59fb9ca96c39b /layouts/_partials/scripts.html | |
| parent | 2a7c4f829611ead8c10004c9a6b3668a4ed1d1c8 (diff) | |
perf: use instantpage.js to improve page speed
Former-commit-id: e52bd5a9c99c5e769f039e794572e028619ba53e
Diffstat (limited to 'layouts/_partials/scripts.html')
| -rw-r--r-- | layouts/_partials/scripts.html | 9 |
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 }} |
