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