Theme Base Structure

This commit is contained in:
juhnsa committed 2025-07-22 15:04:27 +02:00
1 parent d5b8f35393
commit 3aaa1c50a1
23 files changed
+275

No files matched your search

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