added disableImageZoom parameter to disable image zoom

This commit is contained in:
Nuno Coração
2022-10-28 18:31:56 +01:00
parent 828f5cda23
commit 243267d281
2 changed files with 3 additions and 0 deletions

View File

@@ -41,11 +41,13 @@
</div>
<script>
{{ if not .Site.Params.disableImageZoom | default true }}
mediumZoom(document.querySelectorAll("img:not(.nozoom)"), {
margin: 24,
background: 'rgba(0,0,0,0.5)',
scrollOffset: 0,
})
{{ end }}
</script>
{{ $jsProcess := resources.Get "js/process.js" }}
{{ $jsProcess = $jsProcess | resources.Minify | resources.Fingerprint "sha512" }}