mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-22 02:21:37 +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:
parent
c692695754
commit
a94674e6c9
@ -54,7 +54,7 @@
|
|||||||
|
|
||||||
{{- /* include `an-old-hope` if hljs is on */}}
|
{{- /* include `an-old-hope` if hljs is on */}}
|
||||||
{{- $isHLJSdisabled := (site.Params.assets.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) (".chroma { background-color: unset !important;}" | resources.FromString "assets/css/hljs-blank.css") (resources.Get "css/hljs/an-old-hope.min.css")) }}
|
||||||
|
|
||||||
{{- /* order is important */}}
|
{{- /* order is important */}}
|
||||||
{{- $core := (slice $theme_vars $reset $common $hljs $includes_all $media) | resources.Concat "assets/css/core.css" | resources.Minify }}
|
{{- $core := (slice $theme_vars $reset $common $hljs $includes_all $media) | resources.Concat "assets/css/core.css" | resources.Minify }}
|
||||||
|
Loading…
Reference in New Issue
Block a user