Skip to content

Commit

Permalink
Drop empty integrity attr for local CSS rsrcs
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin committed May 16, 2024
1 parent 3ad220d commit 7e75498
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions layouts/partials/head-css.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
{{ $rtlCSS = . | postCSS | minify | fingerprint -}}
{{ end -}}
{{ $css = $css | postCSS | minify | fingerprint -}}

<link rel="preload" href="{{ $css.RelPermalink }}" as="style">
{{- end -}}

Expand All @@ -20,13 +19,9 @@
*/ -}}

{{ with $rtlCSS -}}
<link href="{{ $rtlCSS.RelPermalink }}" rel="stylesheet"
{{- if hugo.IsProduction -}} integrity="{{ $rtlCSS.Data.integrity }}" {{- end -}}
>
<link href="{{ $rtlCSS.RelPermalink }}" rel="stylesheet">
{{ end -}}

<link href="{{ $css.RelPermalink }}" rel="stylesheet"
{{- if hugo.IsProduction -}} integrity="{{ $css.Data.integrity }}" {{- end -}}
>
<link href="{{ $css.RelPermalink }}" rel="stylesheet">

{{- /**/ -}}

0 comments on commit 7e75498

Please sign in to comment.