layouts: disable SRI fingerprinting ...

... since CORS policy is not possible to set in GitHub Pages
This commit is contained in:
liushuyu 2022-05-13 16:52:28 -06:00
parent 3fd2b76d92
commit 703e054972
No known key found for this signature in database
GPG Key ID: 23D1CE4534419437

View File

@ -101,8 +101,8 @@
</footer>
</div>
{{ $mainJs := resources.Match "js/**.js" | resources.Concat "js/script.js" | minify | fingerprint }}
<script src="{{ $mainJs.Permalink }}" integrity="{{ $mainJs.Data.Integrity }}" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
{{ $mainJs := resources.Match "js/**.js" | resources.Concat "js/script.js" | minify }}
<script src="{{ $mainJs.Permalink }}"></script>
{{- block "scripts" . }}{{- end }}
{{- if eq (getenv "HUGO_ENV") "PRD" }}