Init Hugo template

This commit is contained in:
Hoernschen 2024-05-24 22:01:53 +02:00
parent 0c5e1a6fa2
commit 6938e212ba
Signed by: hoernschen
GPG key ID: 37591FAF4E6D3462
24 changed files with 283 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 }}"></script>
{{- end }}
{{- else }}
{{- $opts := dict "minify" true }}
{{- with . | js.Build $opts | fingerprint }}
<script src="{{ .RelPermalink }}" integrity="{{- .Data.Integrity }}" crossorigin="anonymous"></script>
{{- end }}
{{- end }}
{{- end }}