mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-30 11:25:26 +01:00 
			
		
		
		
	Include chroma fix code when hljs is disabled
provided: pygmentsUseClasses: true & markup.highlight.noClasses: false https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs#using-hugos-syntax-highlighter-chroma
This commit is contained in:
		| @@ -54,7 +54,7 @@ | ||||
|  | ||||
| {{- /* include `an-old-hope` if hljs is on */}} | ||||
| {{- $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) (".chroma { background-color: unset !important;}" | resources.FromString "assets/css/hljs-blank.css") (resources.Get "css/hljs/an-old-hope.min.css")) }} | ||||
|  | ||||
| {{- /* order is important */}} | ||||
| {{- $core := (slice $theme_vars $reset $common $hljs $includes_all $media) | resources.Concat "assets/css/core.css" | resources.Minify }} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange