Add integrity field to CSS

This commit is contained in:
BBaoVanC 2021-10-08 20:00:08 -05:00
parent 6c819a3923
commit 8a4579007b
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
1 changed files with 2 additions and 2 deletions

View File

@ -2,8 +2,8 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{ $bobastyle := resources.Get "css/bobastyle.css" | fingerprint "sha256" }}
<link rel="stylesheet" type="text/css" href="{{ $bobastyle.Permalink }}">
{{ $bobastyle := resources.Get "css/bobastyle.css" | fingerprint "sha512" }}
<link rel="stylesheet" type="text/css" href="{{ $bobastyle.Permalink }}" integrity="{{ $bobastyle.Data.Integrity }}">
{{ with .Site.Params.faviconICO }}
<link rel="icon" type="image/x-icon" href="{{.}}" />