mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-20 20:11:53 +02:00
Only request zoom library if it is not disabled.
There is already a if condition in `footer.html` that only runs the JS from the zoom library if it is enabled per-site. This commit takes the same if condition and applies it in `head.html` as well to save a unnecessary web request to `zoom.min.js` if that is the case.
This commit is contained in:
parent
45d634f6ca
commit
a31607509e
1 changed files with 2 additions and 0 deletions
|
@ -73,7 +73,9 @@
|
||||||
integrity="{{ $bundleJS.Data.Integrity }}" data-copy="{{ i18n " code.copy" }}" data-copied="{{ i18n " code.copied"
|
integrity="{{ $bundleJS.Data.Integrity }}" data-copy="{{ i18n " code.copy" }}" data-copied="{{ i18n " code.copied"
|
||||||
}}"></script>
|
}}"></script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ if not .Site.Params.disableImageZoom | default true }}
|
||||||
<script src="{{ "js/zoom.min.js" | relURL }}"></script>
|
<script src="{{ "js/zoom.min.js" | relURL }}"></script>
|
||||||
|
{{ end }}
|
||||||
{{/* Icons */}}
|
{{/* Icons */}}
|
||||||
{{ if templates.Exists "partials/favicons.html" }}
|
{{ if templates.Exists "partials/favicons.html" }}
|
||||||
{{ partialCached "favicons.html" .Site }}
|
{{ partialCached "favicons.html" .Site }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue