tale-hugo icon indicating copy to clipboard operation
tale-hugo copied to clipboard

Code highlighting does not update

Open sn0ot opened this issue 4 years ago • 2 comments

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 :|

sn0ot avatar Dec 31 '20 02:12 sn0ot

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.

EmielH avatar Jan 09 '21 14:01 EmielH

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.

EmielH avatar Jan 18 '21 16:01 EmielH