mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
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:
@@ -24,9 +24,7 @@
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
{{ end }}
|
||||
|
||||
{{ $fa := resources.Get "fonts/forkawesome-webfont.woff2" }}
|
||||
{{ $faFingerprint := $fa | fingerprint }}
|
||||
<link rel="preload" href="{{ $fa.RelPermalink }}?v=1.1.7" as="font" type="font/woff2" integrity="{{ $faFingerprint.Data.Integrity }}" crossorigin>
|
||||
<link rel="preload" href="/fonts/forkawesome-webfont.woff2?v=1.1.7" as="font" type="font/woff2" crossorigin>
|
||||
|
||||
{{ if .Site.IsServer }}
|
||||
{{ $cssOpts := (dict "targetPath" "css/coder.css" "enableSourceMap" true ) }}
|
||||
|
||||
Reference in New Issue
Block a user