File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 20
20
{{- $isHLJSdisabled := (.Site.Params.assets.disableHLJS | default .Params.disableHLJS ) }}
21
21
{{- if (and (eq .Kind "page") (ne .Layout "archives") (ne .Layout "search") (not $isHLJSdisabled)) }}
22
22
{{- if not .Site.Params.assets.disableFingerprinting }}
23
- {{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" | minify | resources.Fingerprint "md5" }}
23
+ {{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" | minify | fingerprint }}
24
24
< script defer src ="{{ $highlight.RelPermalink }} " integrity ="{{ $highlight.Data.Integrity }} "
25
25
onload ="hljs.initHighlightingOnLoad(); "> </ script >
26
26
{{- else}}
Original file line number Diff line number Diff line change 31
31
{{- $stylesheet := (slice $common $extended) | resources.Concat "assets/css/stylesheet.css" | minify }}
32
32
33
33
{{- if not .Site.Params.assets.disableFingerprinting }}
34
- {{- $stylesheet := $stylesheet | resources.Fingerprint "md5" -}}
34
+ {{- $stylesheet := $stylesheet | fingerprint -}}
35
35
< link href ="{{ $stylesheet.RelPermalink }} " integrity ="{{ $stylesheet.Data.Integrity }} " rel ="preload stylesheet "
36
36
as ="style ">
37
37
{{- else}}
43
43
{{- $fastsearch := resources.Get "js/fastsearch.js" | resources.ExecuteAsTemplate "js/fastsearch.js" .Site.Params.fuseOpts }}
44
44
{{- $fusejs := resources.Get "js/fuse.js" }}
45
45
{{- if not .Site.Params.assets.disableFingerprinting }}
46
- {{- $search := (slice $fusejs $fastsearch ) | resources.Concat "assets/js/search.js" | minify | resources.Fingerprint "md5" }}
46
+ {{- $search := (slice $fusejs $fastsearch ) | resources.Concat "assets/js/search.js" | minify | fingerprint }}
47
47
< script defer src ="{{ $search.RelPermalink }} " onload ="loadSearch(); " integrity ="{{ $search.Data.Integrity }} "> </ script >
48
48
{{- else}}
49
49
{{ $search := (slice $fusejs $fastsearch ) | resources.Concat "assets/js/search.js" | minify }}
You can’t perform that action at this time.
0 commit comments