diff --git a/layouts/partials/footer/components/script.html b/layouts/partials/footer/components/script.html index 83522ff..4cb350c 100644 --- a/layouts/partials/footer/components/script.html +++ b/layouts/partials/footer/components/script.html @@ -3,4 +3,10 @@ {{- $opts := dict "minify" hugo.IsProduction -}} {{- $script := resources.Get "ts/main.ts" | js.Build $opts -}} - \ No newline at end of file + + +{{- with resources.Get "ts/custom.ts" -}} + {{/* Place your custom script in HUGO_SITE_FOLDER/assets/ts/custom.ts */}} + {{- $customScript := . | js.Build $opts -}} + +{{- end -}} \ No newline at end of file