File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 22
22
< link rel ="canonical " href ="{{ .Permalink }} ">
23
23
{{ end }}
24
24
25
- < link rel ="preload " href ="/fonts/forkawesome-webfont.woff2?v=1.1.7 " as ="font " type ="font/woff2 " crossorigin >
25
+ {{ $fa := resources.Get "fonts/forkawesome-webfont.woff2" }}
26
+ {{ $faFingerprint := $fa | fingerprint }}
27
+ < link rel ="preload " href ="{{ $fa.RelPermalink }}?v=1.1.7 " as ="font " type ="font/woff2 " integrity ="{{ $faFingerprint.Data.Integrity }} " crossorigin >
26
28
27
29
{{ if .Site.IsServer }}
28
30
{{ $cssOpts := (dict "targetPath" "css/coder.css" "enableSourceMap" true ) }}
118
120
< script src ="{{ $script.RelPermalink }} "> </ script >
119
121
{{ else }}
120
122
{{ $script := resources.Get "js/dark-mode.js" | minify | fingerprint }}
121
- < script src ="{{ $script.RelPermalink }} "> </ script >
123
+ < script src ="{{ $script.RelPermalink }} " integrity =" {{ $script.Data.Integrity }} " > </ script >
122
124
{{ end }}
123
125
{{ end }}
124
126
You can’t perform that action at this time.
0 commit comments