mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-11-22 03:05:37 +01:00
layout/default: use Hugo to bundle the JS files
This commit is contained in:
parent
f286ee6320
commit
95be508e27
@ -101,7 +101,8 @@
|
|||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="{{ .Site.BaseURL }}/js/script.js"></script>
|
{{ $mainJs := resources.Match "js/**.js" | resources.Concat "js/script.js" | minify | fingerprint }}
|
||||||
|
<script src="{{ $mainJs.Permalink }}" integrity="{{ $mainJs.Data.Integrity }}"></script>
|
||||||
{{- block "scripts" . }}{{- end }}
|
{{- block "scripts" . }}{{- end }}
|
||||||
|
|
||||||
{{- if eq (getenv "HUGO_ENV") "PRD" }}
|
{{- if eq (getenv "HUGO_ENV") "PRD" }}
|
||||||
|
Loading…
Reference in New Issue
Block a user