Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/adityatelange/hugo-PaperMod.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAditya Telange <21258296+adityatelange@users.noreply.github.com>2022-06-10 18:56:13 +0300
committerAditya Telange <21258296+adityatelange@users.noreply.github.com>2022-06-10 18:56:13 +0300
commita94674e6c9c7f0902b2cfeccd3016c623e3d2fbb (patch)
tree7eafab1672e6469799994615e95df602e6de938c
parentc69269575464ba6f029d9bb51e1f984045c22d5c (diff)
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
-rw-r--r--layouts/partials/head.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 770bdaac..7d73b784 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -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 }}