Something went wrong. Try again.
My personal website ebardelli.com
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344{{ $main := slice (resources.Get "js/main.js") }}
{{ if .IsPage }} {{ $sidenotes := resources.Get "js/sidenotes.js" }} {{ if hugo.IsProduction }} {{ $sidenotes = $sidenotes | resources.Minify | resources.Fingerprint }} <script src="{{ $sidenotes.Permalink }}" integrity="{{ $sidenotes.Data.Integrity }}"></script> {{ else }} <script src="{{ $sidenotes.Permalink }}"></script> {{ end }}{{ end }}
{{ if .Site.Params.goToTop }} {{ $main = $main | append (resources.Get "js/goToTop.js") }}{{ end }}
{{ $custom := slice }}{{ range $script := .Site.Params.additionalScripts }} {{ $script_res := resources.Get $script }} {{ if not $script_res}} {{ erroridf "additional-script-loading-error" "Failed to load script \"%s\"" $script }} {{ else }} {{ $custom = $custom | append (resources.Get .) }} {{ end }}{{ end }}
{{ if hugo.IsProduction }} {{ $main = $main | resources.Concat "js/main.js" | resources.Minify | resources.Fingerprint }} <script src="{{ $main.Permalink }}" integrity="{{ $main.Data.Integrity }}"></script>
{{ if gt (len $custom) 0 }} {{ $custom = $custom | resources.Concat "js/custom.js" | resources.Minify | resources.Fingerprint }} <script src="{{ $custom.Permalink }}" integrity="{{ $custom.Data.Integrity }}"></script> {{ end }}{{ else }} {{ $main = $main | resources.Concat "js/main.js" }} <script async src="{{ $main.Permalink }}" ></script>
{{ if gt (len $custom) 0 }} {{ $custom = $custom | resources.Concat "js/custom.js" }} <script async src="{{ $custom.Permalink }}" ></script> {{ end }}{{ end }}