diff --git a/themes/nluug/layouts/partials/scripts_loadlast.html b/themes/nluug/layouts/partials/scripts_loadlast.html index d97bde6..5289bd8 100644 --- a/themes/nluug/layouts/partials/scripts_loadlast.html +++ b/themes/nluug/layouts/partials/scripts_loadlast.html @@ -1,9 +1,9 @@ {{ $assetBusting := not .Site.Params.disableAssetsBusting }} {{ $scripts := getJSON "assets/js/scripts.json" }} - {{ $.Scratch.Set "jslibs" slice }} + {{ range $scripts.scripts }} -{{ $.Scratch.Add "jslibs" (resources.Get . ) }} + {{ $.Scratch.Add "jslibs" (resources.Get . ) }} {{ end }} {{ $js := .Scratch.Get "jslibs" | resources.Concat "js/combined-scripts.js" | resources.Minify | fingerprint }}