Do not use unsupported SRI with webfont preload (#536)

* Revert "Use pipes to fingerprint forkawesome-webfont.woff2"

This reverts commit df57316f0756a917b856819653c3db510aa894e9.

* Revert "Verify forkawesome-webfont.woff2 integrity"

This reverts commit 5791f1b8099fbb8ecf349f01bcf80556d11f51d2.
This commit is contained in:
Orzech
2021-03-25 18:25:24 +01:00
committed by GitHub
parent 7ec46861e3
commit c309f14e0f
2 changed files with 1 additions and 3 deletions

View File

@@ -24,9 +24,7 @@
<link rel="canonical" href="{{ .Permalink }}"> <link rel="canonical" href="{{ .Permalink }}">
{{ end }} {{ end }}
{{ $fa := resources.Get "fonts/forkawesome-webfont.woff2" }} <link rel="preload" href="/fonts/forkawesome-webfont.woff2?v=1.1.7" as="font" type="font/woff2" crossorigin>
{{ $faFingerprint := $fa | fingerprint }}
<link rel="preload" href="{{ $fa.RelPermalink }}?v=1.1.7" as="font" type="font/woff2" integrity="{{ $faFingerprint.Data.Integrity }}" crossorigin>
{{ if .Site.IsServer }} {{ if .Site.IsServer }}
{{ $cssOpts := (dict "targetPath" "css/coder.css" "enableSourceMap" true ) }} {{ $cssOpts := (dict "targetPath" "css/coder.css" "enableSourceMap" true ) }}