fix: missing integrity value in head css (#6)

This commit is contained in:
Xin 2023-08-28 20:59:06 +01:00 committed by GitHub
parent 57134eae36
commit 2d62e74e97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,9 +6,9 @@
{{ $styles := resources.Get "css/compiled/main.css" }} {{ $styles := resources.Get "css/compiled/main.css" }}
{{ $styles = $styles | minify | fingerprint | resources.PostProcess }} {{ $styles = $styles | minify | fingerprint | resources.PostProcess }}
<link rel="preload" href="{{ $styles.RelPermalink }}" as="style" /> <link rel="preload" href="{{ $styles.RelPermalink }}" as="style" />
<link href="{{ $styles.RelPermalink }}" rel="stylesheet" integrity="{{ $styles.Data.integrity }}" /> <link href="{{ $styles.RelPermalink }}" rel="stylesheet" integrity="{{ $styles.Data.Integrity }}" />
{{ end }} {{ end }}
{{ $custom := resources.Get "css/custom.css" }} {{ $custom := resources.Get "css/custom.css" }}
{{ $custom = $custom | minify | fingerprint }} {{ $custom = $custom | minify | fingerprint }}
<link href="{{ $custom.RelPermalink }}" rel="stylesheet" integrity="{{ $custom.Data.integrity }}" /> <link href="{{ $custom.RelPermalink }}" rel="stylesheet" integrity="{{ $custom.Data.Integrity }}" />