blob: a4e804881c54a82cf47b4e600b4479e70ce669d9 (
plain)
1
2
3
4
5
6
7
8
9
|
{{ with resources.Get . }}
{{ if hugo.IsProduction }}
{{ with . | js.Build (dict "minify" true "sourceMap" "external") | fingerprint }}
<script src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}"></script>
{{ end }}
{{ else }}
<script src="{{ (. | js.Build dict) .RelPermalink }}"></script>
{{ end }}
{{ end }}
|