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