1
0
mirror of https://github.com/avinal/box-box.git synced 2026-01-10 05:28:33 +05:30
Files
box-box/layouts/partials/head/js.html
2025-01-01 14:40:16 +05:30

13 lines
429 B
HTML

{{- with resources.Get "js/main.js" }}
{{- if eq hugo.Environment "development" }}
{{- with . | js.Build }}
<script src="{{ .RelPermalink }}"></script>
{{- end }}
{{- else }}
{{- $opts := dict "minify" true }}
{{- with . | js.Build $opts | fingerprint }}
<script src="{{ .RelPermalink }}" integrity="{{- .Data.Integrity }}" crossorigin="anonymous"></script>
{{- end }}
{{- end }}
{{- end }}