feat(assets): add SRI config for stylesheet and script
This commit is contained in:
7
layouts/partials/plugin/script.html
Normal file
7
layouts/partials/plugin/script.html
Normal file
@@ -0,0 +1,7 @@
|
||||
{{- $res := .resource -}}
|
||||
{{- with .fingerprint -}}
|
||||
{{- $res = $res | resources.Fingerprint . -}}
|
||||
<script src="{{ $res.RelPermalink }}" integrity="{{ $res.Data.Integrity }}"></script>
|
||||
{{- else -}}
|
||||
<script src="{{ $res.RelPermalink }}"></script>
|
||||
{{- end -}}
|
||||
Reference in New Issue
Block a user