2022-10-29 23:14:19 +08:00
|
|
|
{{- partial "helper/external" (dict "Context" . "Namespace" "Vibrant") -}}
|
|
|
|
|
2020-09-18 01:47:03 +08:00
|
|
|
{{- $opts := dict "minify" hugo.IsProduction -}}
|
2024-10-20 03:14:35 +08:00
|
|
|
{{- $script := resources.Get "ts/main.ts" | js.Build $opts | fingerprint -}}
|
2020-08-22 19:20:08 +08:00
|
|
|
|
2022-01-19 23:35:15 +08:00
|
|
|
<script type="text/javascript" src="{{ $script.RelPermalink }}" defer></script>
|
|
|
|
|
|
|
|
{{- with resources.Get "ts/custom.ts" -}}
|
|
|
|
{{/* Place your custom script in HUGO_SITE_FOLDER/assets/ts/custom.ts */}}
|
2024-10-20 03:14:35 +08:00
|
|
|
{{- $customScript := . | js.Build $opts | fingerprint -}}
|
2022-01-19 23:35:15 +08:00
|
|
|
<script type="text/javascript" src="{{ $customScript.RelPermalink }}" defer></script>
|
|
|
|
{{- end -}}
|