diff --git a/assets/ts/custom.ts b/assets/ts/custom.ts deleted file mode 100644 index 03f250c..0000000 --- a/assets/ts/custom.ts +++ /dev/null @@ -1 +0,0 @@ -/* Place your custom TS in HUGO_SITE_FOLDER/assets/ts/custom.ts */ \ No newline at end of file diff --git a/layouts/partials/footer/components/script.html b/layouts/partials/footer/components/script.html index d73aff4..4cb350c 100644 --- a/layouts/partials/footer/components/script.html +++ b/layouts/partials/footer/components/script.html @@ -2,7 +2,11 @@ {{- $opts := dict "minify" hugo.IsProduction -}} {{- $script := resources.Get "ts/main.ts" | js.Build $opts -}} -{{- $customScript := resources.Get "ts/custom.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