juju.re/jujure/themes/hello_friend/layouts/partials/javascript.html
Julien CLEMENT 9c991511b4 embedded hello friend because i'm lazy
Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
2023-05-01 07:48:08 +02:00

11 lines
463 B
HTML

{{ $main := resources.Get "js/main.js" }}
{{ $menu := resources.Get "js/menu.js" }}
{{ $secureJS := slice $main $menu | resources.Concat "bundle.js" | resources.Minify | resources.Fingerprint "sha512" }}
<script type="text/javascript" src="{{ $secureJS.RelPermalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>
{{ range $val := $.Site.Params.customJS }}
{{ if gt (len $val) 0 }}
<script src="{{ $val }}"></script>
{{ end }}
{{ end }}