Initial commit

This commit is contained in:
Leon Mika 2025-02-19 22:21:38 +11:00
commit 93e0de7a04
22 changed files with 310 additions and 0 deletions

View file

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