zerforschen.plus/themes/own-theme/layouts/partials/head/js.html
Vinzenz Schroeter d400466ad6 wip own theme
2025-06-01 13:44:31 +02:00

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 }}