{{ $scripts := slice }} {{ range site.Params.plugins.js }} {{ if findRE "^http" .link }} {{ else }} {{ $scripts = $scripts | append (resources.Get .link) }} {{ end }} {{ end }} {{ $scripts = $scripts | append (resources.Get "js/main.js") }} {{ $scripts = $scripts | resources.Concat "js/script.js" }} {{ if hugo.IsProduction }} {{ $scripts = $scripts | minify | fingerprint }} {{ end }} {{ partialCached "pwa.html" . }} {{ partialCached "cookie-consent.html" . }} {{ partialCached "adsense-script.html" . }}