From 09ab2aad5c3af7b7ae1c56100d3b928765a0e512 Mon Sep 17 00:00:00 2001 From: Christian Wolf Date: Tue, 21 Jan 2025 19:48:57 +0100 Subject: [PATCH] Fingerprint JS as well --- themes/tsc_vfl/{static => assets}/js/gallery.js | 0 themes/tsc_vfl/layouts/partials/page/head.html | 8 ++++++-- 2 files changed, 6 insertions(+), 2 deletions(-) rename themes/tsc_vfl/{static => assets}/js/gallery.js (100%) 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 }} +