forked from mirror/Mainroad
minify js
This commit is contained in:
parent
0660e6a10f
commit
0365a26f4a
2 changed files with 4 additions and 2 deletions
|
@ -20,9 +20,11 @@
|
||||||
</div>
|
</div>
|
||||||
{{ block "footer" . }}{{ partial "footer.html" . }}{{ end }}
|
{{ block "footer" . }}{{ partial "footer.html" . }}{{ end }}
|
||||||
</div>
|
</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 -}}
|
{{ range .Site.Params.customJS -}}
|
||||||
<script src="{{ . | relURL }}"></script>
|
{{ $customScript := resources.Get . | resources.Minify -}}
|
||||||
|
<script async defer src="{{ $customScript.RelPermalink }}"></script>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- partial "mathjax.html" . -}}
|
{{- partial "mathjax.html" . -}}
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Add table
Reference in a new issue