mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-29 19:42:10 -05:00
b6538532f4
The skeletons are used when creating new sites and themes with the CLI. Closes #11358
12 lines
429 B
HTML
12 lines
429 B
HTML
{{- with resources.Get "js/main.js" }}
|
|
{{- if eq hugo.Environment "development" }}
|
|
{{- with . | js.Build }}
|
|
<script src="{{ .RelPermalink }}"></script>
|
|
{{- end }}
|
|
{{- else }}
|
|
{{- $opts := dict "minify" true }}
|
|
{{- with . | js.Build $opts | fingerprint }}
|
|
<script src="{{ .RelPermalink }}" integrity="{{- .Data.Integrity }}" crossorigin="anonymous"></script>
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|