diff --git a/layouts/partials/js.html b/layouts/partials/js.html index 1e499a0d..0db65722 100644 --- a/layouts/partials/js.html +++ b/layouts/partials/js.html @@ -11,18 +11,15 @@ {{ if $postHasImages }} - {{ $vendorscript := slice $dynamic $main $lihtGallery $lihtGallery_init | resources.Concat "/js/vendor_gallery.js" | resources.Minify }} + {{ $vendorscript := slice $jquery $lazysizes $prettify $dynamic $main $lihtGallery $lihtGallery_init | resources.Concat "/js/vendor_gallery.js" | resources.Minify }} - - - {{ else }} - {{ $vendorscript := slice $dynamic $main | resources.Concat "/js/vendor_no_gallery.js" | resources.Minify }} + {{ $vendorscript := slice $jquery $prettify $dynamic $main | resources.Concat "/js/vendor_no_gallery.js" | resources.Minify }} {{ end }} {{ else }} - {{ $main := slice $main | resources.Concat "/js/vendor_main.js" | resources.Minify}} + {{ $main := slice $jquery $main | resources.Concat "/js/vendor_main.js" | resources.Minify}} {{ end }}