Is it possible to change the highlight style depending on theme variant? #918
-
I have tried to search through Hugo docs, Currently, we use these params and markup config: params:
author.name: "<owner>"
collapsibleMenu: true
disableInlineCopyToClipBoard: true
editURL: https://github.com/<org>/<repo>/edit/main/content/${FilePath}
themeVariant:
- identifier: zen-auto
name: Auto
auto:
- zen-light
- zen-dark
- identifier: zen-dark
name: Dark
- identifier: zen-light
name: Light
markup:
highlight:
style: tango The With the light theme, the code block correctly shows |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Does this help? https://mcshelby.github.io/hugo-theme-relearn/basics/branding/index.html#syntax-highlighting |
Beta Was this translation helpful? Give feedback.
-
Wow, thanks for the very quick answer! |
Beta Was this translation helpful? Give feedback.
Does this help? https://mcshelby.github.io/hugo-theme-relearn/basics/branding/index.html#syntax-highlighting