summaryrefslogtreecommitdiff
path: root/layouts/partials/head
diff options
context:
space:
mode:
authorFrancesco <tomaselli.fr@gmail.com>2024-04-24 14:53:00 +0200
committerFrancesco <tomaselli.fr@gmail.com>2024-04-24 14:53:00 +0200
commit29e90e8ac131a181ea0acd5a21faa643109e1cbc (patch)
treeccbd6484648e61d3f1e3ffcef36e82b1b71e045c /layouts/partials/head
parent4652e8aa97bed57ac468ef6eae6d66365ac740e0 (diff)
Removed unnecessary math.js load
Diffstat (limited to 'layouts/partials/head')
-rw-r--r--layouts/partials/head/js.html14
1 files changed, 4 insertions, 10 deletions
diff --git a/layouts/partials/head/js.html b/layouts/partials/head/js.html
index 18fe842..8bae509 100644
--- a/layouts/partials/head/js.html
+++ b/layouts/partials/head/js.html
@@ -1,12 +1,6 @@
{{- 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 }}
+{{- $opts := dict "minify" true }}
+{{- with . | js.Build $opts | fingerprint }}
+<script src="{{ .RelPermalink }}" integrity="{{- .Data.Integrity }}" crossorigin="anonymous"></script>
{{- end }}
+{{- end }} \ No newline at end of file