{{ $lazysizes := resources.Get "js/vendor/lazysizes/lazysizes.min.js" -}} {{ $bootstrap := resources.Get "js/vendor/bootstrap/dist/js/bootstrap.min.js" -}} {{ $lightGallery := resources.Get "js/lightgallery.umd.js" -}} {{ $lightGalleryVideo := resources.Get "js/plugins/video/lg-video.umd.js" -}} {{ $lightGalleryFullscreen := resources.Get "js/plugins/fullscreen/lg-fullscreen.umd.js" -}} {{ $lightGalleryZoom := resources.Get "js/plugins/zoom/lg-zoom.umd.js" -}} {{ $lightGalleryRotate := resources.Get "js/plugins/rotate/lg-rotate.umd.js" -}} {{ $lightGalleryThumbnail := resources.Get "js/plugins/thumbnail/lg-thumbnail.umd.js" -}} {{ $lightGalleryPager := resources.Get "js/plugins/pager/lg-pager.umd.js" -}} {{ $lightGalleryHash := resources.Get "js/plugins/hash/lg-hash.umd.js" -}} {{ $lightGalleryShare := resources.Get "js/plugins/share/lg-share.umd.js" -}} {{ $lightGalleryComment := resources.Get "js/plugins/comment/lg-comment.umd.js" -}} {{ $lightGalleryAutoplay := resources.Get "js/plugins/autoplay/lg-autoplay.umd.js" -}} {{ $jQuery := resources.Get "js/vendor/jQuery.js" -}} {{ $justifiedGallery := resources.Get "js/vendor/jquery.justifiedGallery.js" -}} {{ if eq .Title "Video gallery" -}} {{ end -}} {{ if eq .Title "Comment box" -}}
{{ end -}} {{ if eq (hugo.Environment) "development" -}} {{ $app := resources.Get "js/app.js" | babel -}} {{ $js := slice $lazysizes $bootstrap $app | resources.Concat "main.js" -}} {{ else -}} {{ $instantPage := resources.Get "js/vendor/instant.page/instantpage.js" | babel | minify -}} {{ $app := resources.Get "js/app.js" | babel | minify -}} {{ $js := slice $lazysizes $jQuery $justifiedGallery $bootstrap $instantPage $lightGallery $lightGalleryVideo $lightGalleryFullscreen $lightGalleryZoom $lightGalleryRotate $lightGalleryThumbnail $lightGalleryPager $lightGalleryHash $lightGalleryShare $lightGalleryComment $lightGalleryAutoplay $app | resources.Concat "main.js" -}} {{ $secureJS := $js | resources.Fingerprint "sha512" -}} {{ end -}}