Browse Source

refactor: site.Params.require_isotope -> site.Params.extensions.isotope.enable

BREAKING CHANGE

See #2601
George Cushen 3 years ago
parent
commit
8985075341
1 changed files with 1 additions and 1 deletions
  1. 1 1
      wowchemy/layouts/partials/site_js.html

+ 1 - 1
wowchemy/layouts/partials/site_js.html

@@ -17,7 +17,7 @@
     {{ if not ($scr.Get "use_cdn") }}
       <script src="{{ printf "/js/vendor/%s" ($scr.Get "vendor_js_filename") | relURL }}"></script>
     {{ else }}
-      {{ $require_isotope := .Params.require_isotope | default site.Params.require_isotope | default true }}
+      {{ $require_isotope := .Params.require_isotope | default site.Params.extensions.isotope.enable | default false }}
       {{ if $require_isotope }}
         {{ printf "<script src=\"%s\" integrity=\"%s\" crossorigin=\"anonymous\"></script>" (printf $js.imagesLoaded.url $js.imagesLoaded.version) $js.imagesLoaded.sri | safeHTML }}
         {{ printf "<script src=\"%s\" integrity=\"%s\" crossorigin=\"anonymous\"></script>" (printf $js.isotope.url $js.isotope.version) $js.isotope.sri | safeHTML }}