mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-30 04:23:30 +08:00
feat: add custom.ts
This commit is contained in:
parent
86cbc1b682
commit
822d5ad445
1
assets/ts/custom.ts
Normal file
1
assets/ts/custom.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
/* Place your custom TS in HUGO_SITE_FOLDER/assets/ts/custom.ts */
|
@ -2,5 +2,7 @@
|
|||||||
|
|
||||||
{{- $opts := dict "minify" hugo.IsProduction -}}
|
{{- $opts := dict "minify" hugo.IsProduction -}}
|
||||||
{{- $script := resources.Get "ts/main.ts" | js.Build $opts -}}
|
{{- $script := resources.Get "ts/main.ts" | js.Build $opts -}}
|
||||||
|
{{- $customScript := resources.Get "ts/custom.ts" | js.Build $opts -}}
|
||||||
|
|
||||||
<script type="text/javascript" src="{{ $script.RelPermalink }}" defer></script>
|
<script type="text/javascript" src="{{ $script.RelPermalink }}" defer></script>
|
||||||
|
<script type="text/javascript" src="{{ $customScript.RelPermalink }}" defer></script>
|
Loading…
Reference in New Issue
Block a user