hugo-theme-lowtech/layouts/partials/js.html

6 lines
233 B
HTML

{{ $js := resources.Get "js/main.js" }}
{{ with $js }}
{{ $secureJS := . | js.Build | resources.Minify | resources.Fingerprint }}
<script src="{{ $secureJS.Permalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>
{{ end }}