mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-10-29 15:25:56 +00:00
added disableImageZoom parameter to disable image zoom
This commit is contained in:
1 parent
828f5cda23
commit
243267d281
2 files changed
+3
No files matched your search
@@ -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" }}
|
||||
|
||||
Reference in new issue
Block a user