{{ $enableMediumZoom := default true (.Site.Params.enableMediumZoom) }}
{{- if eq $enableMediumZoom true -}}
  {{ $js := resources.Get "js/medium-zoom.js" }}
  {{ $secureJS := $js |  resources.Minify | resources.Fingerprint }}
  <script
    type="text/javascript"
    src="{{ $secureJS.RelPermalink }}"
    integrity="{{ $secureJS.Data.Integrity }}"
    crossorigin="anonymous"
  ></script>
{{- end -}}
