1
0
Fork 0

minify js

This commit is contained in:
dark_hash 2025-01-20 22:49:49 +01:00
parent f007390894
commit 089bf1ffbb
2 changed files with 4 additions and 2 deletions
assets/js
layouts/_default

View file

@ -55,9 +55,11 @@
</div>
{{ block "footer" . }}{{ partial "footer.html" . }}{{ end }}
</div>
<script async defer src="{{ "js/menu.js" | relURL }}"></script>
{{ $menuScript := resources.Get "js/menu.js" | resources.Minify -}}
<script async defer src="{{ $menuScript.RelPermalink }}"></script>
{{ range .Site.Params.customJS -}}
<script src="{{ . | relURL }}"></script>
{{ $customScript := resources.Get . | resources.Minify -}}
<script async defer src="{{ $customScript.RelPermalink }}"></script>
{{- end }}
{{- partial "mathjax.html" . -}}
</body>