Merge pull request #1071 from ItsJustRuby/feature/skip_request_for_zoom.js_if_disabled

Only send web request for zoom library if it is not disabled.
This commit is contained in:
Nuno Coração 2023-12-01 11:21:54 +00:00 committed by GitHub
commit baa33ffeff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,7 +73,9 @@
integrity="{{ $bundleJS.Data.Integrity }}" data-copy="{{ i18n " code.copy" }}" data-copied="{{ i18n " code.copied"
}}"></script>
{{ end }}
{{ if not .Site.Params.disableImageZoom | default true }}
<script src="{{ "js/zoom.min.js" | relURL }}"></script>
{{ end }}
{{/* Icons */}}
{{ if templates.Exists "partials/favicons.html" }}
{{ partialCached "favicons.html" .Site }}