From df0a232bfc6d0a6b836680fd58e9f0bffa82b167 Mon Sep 17 00:00:00 2001 From: "W.T. Chang" <1546333+wtchangdm@users.noreply.github.com> Date: Wed, 24 Jul 2024 23:27:00 +0800 Subject: [PATCH] add hash to zoom.min.js --- {static/js => assets/lib/zoom}/zoom.min.js | 0 layouts/partials/head.html | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) rename {static/js => assets/lib/zoom}/zoom.min.js (100%) diff --git a/static/js/zoom.min.js b/assets/lib/zoom/zoom.min.js similarity index 100% rename from static/js/zoom.min.js rename to assets/lib/zoom/zoom.min.js diff --git a/layouts/partials/head.html b/layouts/partials/head.html index f59e9dc8..4540753b 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -74,7 +74,8 @@ }}"> {{ end }} {{ if not .Site.Params.disableImageZoom | default true }} - + {{ $zoomJS := resources.Get "lib/zoom/zoom.min.js" | resources.Fingerprint "sha512" }} + {{ end }} {{/* Icons */}} {{ if templates.Exists "partials/favicons.html" }}