aboutsummaryrefslogblamecommitdiff
path: root/themes/hugo-theme-stack/layouts/partials/footer/components/script.html
blob: 3dc96cb2058f144b9e257f41b9cc57a0a98f0ab5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                                         
{{- partial "helper/external" (dict "Context" . "Namespace" "Vibrant") -}}

{{- $opts := dict "minify" hugo.IsProduction -}}
{{- $script := resources.Get "ts/main.ts" | js.Build $opts | fingerprint -}}

<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 -}}
    <script type="text/javascript" src="{{ $customScript.RelPermalink }}" defer></script>
{{- end -}}