From 48cba7f5aedec28e24b427cd0a3b00ded924de63 Mon Sep 17 00:00:00 2001 From: Reorx Date: Thu, 21 Apr 2022 23:39:03 +0800 Subject: add image zoom js --- layouts/partials/footer.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'layouts') diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 03a932c..e676aa3 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -228,6 +228,15 @@ {{- end -}} +{{- if (.Param "EnableImageZoom") }} +{{- $imagezoom := resources.Get "js/medium-zoom.min.js" }} + + +{{- end }} {{ if (.Param "comments") }} {{ partial "comments_js.html" . }} @@ -250,7 +259,7 @@ {{- /* InstantClick.js */}} {{- if (.Param "EnableInstantClick") }} -{{- $instantclick := slice (resources.Get "js/instantclick.js") | resources.Concat "assets/js/instantclick.js" | minify }} +{{- $instantclick := resources.Get "js/instantclick.js" }} -- cgit v1.2.3