Skip to content

Commit

Permalink
fix: add integrity attribute to styles css preload tag (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
imfing authored Sep 23, 2023
1 parent fdc30c6 commit 0e9cf1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/head-css.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

{{- if hugo.IsProduction }}
{{- $styles = $styles | minify | fingerprint }}
<link rel="preload" href="{{ $styles.RelPermalink }}" as="style" />
<link rel="preload" href="{{ $styles.RelPermalink }}" as="style" integrity="{{ $styles.Data.Integrity }}" />
<link href="{{ $styles.RelPermalink }}" rel="stylesheet" integrity="{{ $styles.Data.Integrity }}" />
{{- else }}
<link href="{{ $styles.RelPermalink }}" rel="stylesheet" />
Expand Down

0 comments on commit 0e9cf1a

Please sign in to comment.