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

View File

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