Verhelpen Hugo 0.123 deprecation

This commit is contained in:
Michael Boelen 2024-02-21 09:33:31 +00:00
parent d1f43e4e4d
commit 9b49f2319a

View file

@ -1,6 +1,6 @@
{{ $assetBusting := not .Site.Params.disableAssetsBusting }}
{{ $scripts := getJSON "assets/js/scripts.json" }}
{{ $.Scratch.Set "jslibs" slice }} {{ $.Scratch.Set "jslibs" slice }}
{{ $assetBusting := not .Site.Params.disableAssetsBusting }}
{{ $scripts := resources.Get "js/scripts.json" | unmarshal }}
{{ range $scripts.scripts }} {{ range $scripts.scripts }}
{{ $.Scratch.Add "jslibs" (resources.Get . ) }} {{ $.Scratch.Add "jslibs" (resources.Get . ) }}