8 lines
333 B
HTML
8 lines
333 B
HTML
{{ if hugo.IsProduction }}
|
|
{{ $theme_script := resources.Get "js/theme.js" | minify | fingerprint }}
|
|
<script src="{{ $theme_script.RelPermalink }}" integrity="{{ $theme_script.Data.Integrity }}"></script>
|
|
{{ else }}
|
|
{{ $theme_script := resources.Get "js/theme.js" }}
|
|
<script src="{{ $theme_script.RelPermalink }}"></script>
|
|
{{ end}}
|