Skip to content

Commit

Permalink
fix: repair fetching zoom.min.js
Browse files Browse the repository at this point in the history
  • Loading branch information
f-hollow committed Dec 16, 2024
1 parent e061c28 commit 1fe79bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@
}}"></script>
{{ end }}
{{ if not .Site.Params.disableImageZoom | default true }}
<script src="{{ "js/zoom.min.js" | relURL }}"></script>
{{ $zoomJS := resources.Get "lib/zoom/zoom.min.js" | resources.Fingerprint "sha512" }}
<script src="{{ $zoomJS.RelPermalink }}" integrity="{{ $zoomJS.Data.Integrity }}"></script>
{{ end }}
{{/* Icons */}}
{{ if templates.Exists "partials/favicons.html" }}
Expand Down

0 comments on commit 1fe79bc

Please sign in to comment.