hugo-theme-introduction/layouts/partials/footer/scripts.html

13 lines
569 B
HTML
Raw Normal View History

{{ $jQuery := resources.Get "vendor/jquery/jquery-3.5.1.min.js" }}
2019-07-25 14:15:03 +00:00
{{ $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>
2018-07-01 08:09:29 +00:00
{{ 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 }}