mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 03:45:24 +01:00 
			
		
		
		
	Don't consider page-variable to disable HLJS while generating assets
- may lead to generating multiple bundles
This commit is contained in:
		| @@ -33,7 +33,7 @@ | |||||||
| {{- $common := (resources.Match "css/common/*.css") | resources.Concat "assets/css/common.css" }} | {{- $common := (resources.Match "css/common/*.css") | resources.Concat "assets/css/common.css" }} | ||||||
|  |  | ||||||
| {{- /* include `an-old-hope` if hljs is on */}} | {{- /* include `an-old-hope` if hljs is on */}} | ||||||
| {{- $isHLJSdisabled := (.Site.Params.assets.disableHLJS | default .Params.disableHLJS ) | default false }} | {{- $isHLJSdisabled := (.Site.Params.assets.disableHLJS | default false) }} | ||||||
| {{- $hljs := (cond ($isHLJSdisabled) (" " | resources.FromString "assets/css/hljs-blank.css") (resources.Get "css/hljs/an-old-hope.min.css")) }} | {{- $hljs := (cond ($isHLJSdisabled) (" " | resources.FromString "assets/css/hljs-blank.css") (resources.Get "css/hljs/an-old-hope.min.css")) }} | ||||||
|  |  | ||||||
| {{- /* order is important */}} | {{- /* order is important */}} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange