diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 046faf7d..6d1eee96 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -56,8 +56,10 @@ {{ $jsDark := resources.Get "js/dark.js" }} {{ $assets.Add "js" (slice $jsDark) }} {{ end }} - {{ $bundleJS := $assets.Get "js" | resources.Concat "js/main.bundle.js" | resources.Minify | resources.Fingerprint "sha512" }} - + {{ if $assets.Get "js" }} + {{ $bundleJS := $assets.Get "js" | resources.Concat "js/main.bundle.js" | resources.Minify | resources.Fingerprint "sha512" }} + + {{ end }} {{/* Icons */}} {{ if templates.Exists "partials/favicons.html" }} {{ partialCached "favicons.html" .Site }}