2024-05-14 23:53:20 +02:00
|
|
|
{{ $js := resources.Get "javascripts/main.js" }}
|
2024-02-02 12:39:18 +01:00
|
|
|
{{ with $js }}
|
|
|
|
{{ $secureJS := . | js.Build }}
|
|
|
|
{{ if not $.Site.Params.debug }}
|
|
|
|
{{ $secureJS = $secureJS | minify }}
|
|
|
|
{{ end }}
|
|
|
|
{{ $secureJS = $secureJS | fingerprint }}
|
|
|
|
<script src="{{ $secureJS.Permalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>
|
|
|
|
{{ end }}
|