diff --git a/themes/tsc_vfl/static/js/gallery.js b/themes/tsc_vfl/assets/js/gallery.js similarity index 100% rename from themes/tsc_vfl/static/js/gallery.js rename to themes/tsc_vfl/assets/js/gallery.js diff --git a/themes/tsc_vfl/layouts/partials/page/head.html b/themes/tsc_vfl/layouts/partials/page/head.html index 25a2b92..c0a3120 100644 --- a/themes/tsc_vfl/layouts/partials/page/head.html +++ b/themes/tsc_vfl/layouts/partials/page/head.html @@ -20,6 +20,10 @@ {{ $title }} - - + {{ $galleryJs := resources.Get "js/gallery.js" }} + {{ if hugo.IsProduction }}{{ $galleryJs = $galleryJs | minify | fingerprint }}{{ end }} + + {{ $mailsJs := resources.Get "js/mails.js" }} + {{ if hugo.IsProduction }}{{ $mailsJs = $mailsJs | minify | fingerprint }}{{ end }} +