blob: f4dc641cf5bd62803c73cdc7cd5ff51717b9018f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
{{ $jQuery := resources.Get "vendor/jquery/jquery-3.5.1.min.js" }}
{{ $index := resources.Get "js/index.js" | minify }}
{{ $scripts := slice $jQuery $index | resources.Concat "js/bundle.js" | fingerprint }}
<script src="{{ $scripts.Permalink }}" integrity="{{ $scripts.Data.Integrity }}"></script>
{{ template "_internal/google_analytics_async.html" . }}
<!-- Custom JavaScript -->
{{ range .Site.Params.customJS -}}
{{ $script := resources.Get . | minify }}
<script src="{{ $script.Permalink }}" integrity="{{ $script.Data.Integrity }}"></script>
{{- end }}
|