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 | e52bd5a9c99c5e769f039e794572e028619ba53e (patch) | |
| tree | 11d7e1ba16f33b8dbe994aa510fad110161dbd0a /layouts/_partials/scripts.html | |
| parent | bcd509c540632b6524a8dd87a4613e64ed0402f6 (diff) | |
perf: use instantpage.js to improve page speed
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 }} |
