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

10 lines
314 B
HTML
Raw Normal View History

2021-02-16 16:37:34 +01:00
{{ $js := resources.Get "js/main.js" }}
{{ with $js }}
{{ $secureJS := . | js.Build }}
{{ if not $.Site.Params.debug }}
{{ $secureJS = $secureJS | minify }}
{{ end }}
{{ $secureJS = $secureJS | fingerprint }}
2021-04-01 11:02:51 +02:00
<script src="{{ $secureJS.Permalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>
2020-09-09 12:15:40 +02:00
{{ end }}