Revert "Use md5 instead of default sha256 for generating SRI hashes (#195)"
This reverts commit 9e99493e69.
			
			
This commit is contained in:
		
							parent
							
								
									cadca8a68a
								
							
						
					
					
						commit
						e1ea90aa60
					
				|  | @ -20,7 +20,7 @@ | ||||||
| {{- $isHLJSdisabled := (.Site.Params.assets.disableHLJS | default .Params.disableHLJS ) }} | {{- $isHLJSdisabled := (.Site.Params.assets.disableHLJS | default .Params.disableHLJS ) }} | ||||||
| {{- if (and (eq .Kind "page") (ne .Layout "archives") (ne .Layout "search") (not $isHLJSdisabled)) }} | {{- if (and (eq .Kind "page") (ne .Layout "archives") (ne .Layout "search") (not $isHLJSdisabled)) }} | ||||||
| {{- if not .Site.Params.assets.disableFingerprinting }} | {{- if not .Site.Params.assets.disableFingerprinting }} | ||||||
| {{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" | minify | resources.Fingerprint "md5" }} | {{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" | minify | fingerprint }} | ||||||
| <script defer src="{{ $highlight.RelPermalink }}" integrity="{{ $highlight.Data.Integrity }}" | <script defer src="{{ $highlight.RelPermalink }}" integrity="{{ $highlight.Data.Integrity }}" | ||||||
|     onload="hljs.initHighlightingOnLoad();"></script> |     onload="hljs.initHighlightingOnLoad();"></script> | ||||||
| {{- else}} | {{- else}} | ||||||
|  |  | ||||||
|  | @ -31,7 +31,7 @@ | ||||||
| {{- $stylesheet := (slice $common $extended) | resources.Concat "assets/css/stylesheet.css" | minify }} | {{- $stylesheet := (slice $common $extended) | resources.Concat "assets/css/stylesheet.css" | minify }} | ||||||
| 
 | 
 | ||||||
| {{- if not .Site.Params.assets.disableFingerprinting }} | {{- if not .Site.Params.assets.disableFingerprinting }} | ||||||
| {{- $stylesheet := $stylesheet | resources.Fingerprint "md5" -}} | {{- $stylesheet := $stylesheet | fingerprint -}} | ||||||
| <link href="{{ $stylesheet.RelPermalink }}" integrity="{{ $stylesheet.Data.Integrity }}" rel="preload stylesheet" | <link href="{{ $stylesheet.RelPermalink }}" integrity="{{ $stylesheet.Data.Integrity }}" rel="preload stylesheet" | ||||||
|     as="style"> |     as="style"> | ||||||
| {{- else}} | {{- else}} | ||||||
|  | @ -43,7 +43,7 @@ | ||||||
| {{- $fastsearch := resources.Get "js/fastsearch.js" | resources.ExecuteAsTemplate "js/fastsearch.js" .Site.Params.fuseOpts }} | {{- $fastsearch := resources.Get "js/fastsearch.js" | resources.ExecuteAsTemplate "js/fastsearch.js" .Site.Params.fuseOpts }} | ||||||
| {{- $fusejs := resources.Get "js/fuse.js" }} | {{- $fusejs := resources.Get "js/fuse.js" }} | ||||||
| {{- if not .Site.Params.assets.disableFingerprinting }} | {{- if not .Site.Params.assets.disableFingerprinting }} | ||||||
| {{- $search := (slice $fusejs $fastsearch ) | resources.Concat "assets/js/search.js" | minify | resources.Fingerprint "md5" }} | {{- $search := (slice $fusejs $fastsearch ) | resources.Concat "assets/js/search.js" | minify | fingerprint }} | ||||||
| <script defer src="{{ $search.RelPermalink }}" onload="loadSearch();" integrity="{{ $search.Data.Integrity }}"></script> | <script defer src="{{ $search.RelPermalink }}" onload="loadSearch();" integrity="{{ $search.Data.Integrity }}"></script> | ||||||
| {{- else}} | {{- else}} | ||||||
| {{ $search := (slice $fusejs $fastsearch ) | resources.Concat "assets/js/search.js" | minify }} | {{ $search := (slice $fusejs $fastsearch ) | resources.Concat "assets/js/search.js" | minify }} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Aditya Telange
						Aditya Telange