From 4a33e8a87e4a26dc28bec71cf4aa331408e40d74 Mon Sep 17 00:00:00 2001 From: Riley Seaburg Date: Tue, 3 Dec 2024 10:23:25 -0600 Subject: [PATCH] fix: correct Hugo resource pipeline in head.html - Fix resource path handling - Add null checks for resources - Update minification pipeline order - Fix type mismatch in resource transformation --- themes/digital.gov/layouts/partials/core/head.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/themes/digital.gov/layouts/partials/core/head.html b/themes/digital.gov/layouts/partials/core/head.html index bc495dbc9c..748f00c6e2 100644 --- a/themes/digital.gov/layouts/partials/core/head.html +++ b/themes/digital.gov/layouts/partials/core/head.html @@ -226,7 +226,12 @@ {{- if $customCSS -}} {{- $customCSSMinified := $customCSS | minify | fingerprint -}} - + {{- end -}} {{- end -}} {{- end -}} @@ -251,7 +256,7 @@ {{- $js := resources.Get $uswdsInit -}} {{- if $js -}} {{- $jsMinified := $js | minify | fingerprint -}} -