fix: JS broken in v3 (#3061)

* fix: zoom broken in v3 (#3060)

* fix: buymeacoffee broken in v3
This commit is contained in:
ZhenShuo2021 authored and GitHub committed 2026-08-21 02:17:22 +01:00
1 parent ca56ac78a3
commit 8334f00562
4 files changed
+18 -36

No files matched your search

+2
View File
@@ -157,6 +157,8 @@
{{ if not .Site.Params.disableImageZoom | default true }}
{{ $zoomJS := resources.Get "lib/zoom/zoom.min.umd.js" | resources.Fingerprint $alg }}
<script defer src="{{ $zoomJS.RelPermalink }}" integrity="{{ $zoomJS.Data.Integrity }}"></script>
{{ $zoomInit := resources.Get "js/medium-zoom.js" | resources.Fingerprint $alg }}
<script defer src="{{ $zoomInit.RelPermalink }}" integrity="{{ $zoomInit.Data.Integrity }}"></script>
{{ end }}
{{ $showReadingProgress := site.Params.article.showReadingProgress | default false }}
{{ if isset .Params "showreadingprogress" }}