blob: a491eee9b86232fd0914fb88d3a2376403d2afaf (
plain)
1
2
3
4
5
6
7
8
|
{{- $index := resources.Get "js/index.js" -}}
{{- $js := $index | resources.Minify | fingerprint -}}
{{ if .Site.Params.site.production }}
<script src="{{ $js.Permalink }}"></script>
{{ else }}
<script src="{{ $index.Permalink }}"></script>
{{ end }}
|