From 822d5ad445f4bb7bd8f0820e8dfaaa938925647a Mon Sep 17 00:00:00 2001 From: chenlianghong Date: Thu, 13 Jan 2022 11:02:51 +0800 Subject: [PATCH] feat: add custom.ts --- assets/ts/custom.ts | 1 + layouts/partials/footer/components/script.html | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 assets/ts/custom.ts diff --git a/assets/ts/custom.ts b/assets/ts/custom.ts new file mode 100644 index 0000000..03f250c --- /dev/null +++ b/assets/ts/custom.ts @@ -0,0 +1 @@ +/* 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 83522ff..d73aff4 100644 --- a/layouts/partials/footer/components/script.html +++ b/layouts/partials/footer/components/script.html @@ -2,5 +2,7 @@ {{- $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 + + \ No newline at end of file