diff options
author | Francesco <tomaselli.fr@gmail.com> | 2024-04-24 14:53:00 +0200 |
---|---|---|
committer | Francesco <tomaselli.fr@gmail.com> | 2024-04-24 14:53:00 +0200 |
commit | 29e90e8ac131a181ea0acd5a21faa643109e1cbc (patch) | |
tree | ccbd6484648e61d3f1e3ffcef36e82b1b71e045c /layouts/partials/head/js.html | |
parent | 4652e8aa97bed57ac468ef6eae6d66365ac740e0 (diff) |
Removed unnecessary math.js load
Diffstat (limited to 'layouts/partials/head/js.html')
-rw-r--r-- | layouts/partials/head/js.html | 14 |
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 |