blob: 1e8bfc52adc368ca2509177fb55fd11c6db5fa52 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
{{- with resources.Get "js/main.js" }}
{{- if eq hugo.Environment "development" }}
{{- with . | js.Build }}
<script src="{{ .RelPermalink }}" defer="true"></script>
{{- end }}
{{- else }}
{{- $opts := dict "minify" true }}
{{- with . | js.Build $opts | fingerprint }}
<script src="{{ .RelPermalink }}" defer="true" integrity="{{- .Data.Integrity }}" crossorigin="anonymous"></script>
{{- end }}
{{- end }}
{{- end }}
<script src="/js/bootstrap.bundle.min.js" defer="true"></script>
|