Don't consider page-variable to disable HLJS while generating assets
- may lead to generating multiple bundles
This commit is contained in:
parent
0c0c6847e5
commit
fb4988cfb6
@ -33,7 +33,7 @@
|
||||
{{- $common := (resources.Match "css/common/*.css") | resources.Concat "assets/css/common.css" }}
|
||||
|
||||
{{- /* 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")) }}
|
||||
|
||||
{{- /* order is important */}}
|
||||
|
Loading…
Reference in New Issue
Block a user