tale-hugo
tale-hugo copied to clipboard
Code highlighting does not update
Changing values in _syntax.scss
has no effect on the code's syntax highlights.
When building the site, the default style is always "monokai" as mentioned in Hugo's Configure Markdown Goldmark Highlight section.
The only way I've managed to change theme is by including the following in config.toml
[markup]
[markup.highlight]
style = "solarized-dark256"
Is there a parameter that needs to be set in config.toml
to use what is defined in _syntax.scss
? It is not mentioned in the README
. sorry for the noob issues :|
No worries! I'm going to check the syntax highlighting; changing its theme is definitely something that should be added to this theme's readme.
The way you described to change the theme is correct. The Hugo documentation shows this. And there are many themes to choose from.
To completely customise your style, you probably need to do something like this. But I don't think it's necessary to include this in the theme. I can add a piece to the README about syntax highlighting and I should probably remove _syntax.scss
from the theme to avoid confusion in the future, if it isn't being used anyway.