Files
hugo-theme-stack/layouts/_partials/footer/components/script.html
T

19 lines
664 B
HTML
Raw Normal View History

2026-04-26 13:40:46 +02:00
{{- $opts := dict
"minify" hugo.IsProduction
"params" (dict
"codeblock" (dict
"copy" (i18n "article.codeblock.copy")
"copied" (i18n "article.codeblock.copied")
)
)
-}}
{{- $script := resources.Get "ts/main.ts" | js.Build $opts | fingerprint -}}
2020-08-22 13:20:08 +02: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 */}}
{{- $customScript := . | js.Build $opts | fingerprint -}}
2022-01-19 23:35:15 +08:00
<script type="text/javascript" src="{{ $customScript.RelPermalink }}" defer></script>
2026-04-26 13:40:46 +02:00
{{- end -}}