EmielH / tale-hugo

A port of the Tale theme for Hugo. Tale is a minimal theme curated for storytellers.
https://themes.gohugo.io/tale-hugo/
MIT License
251 stars 123 forks source link

Code highlighting does not update #45

Open sn0ot opened 3 years ago

sn0ot commented 3 years ago

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

EmielH commented 3 years ago

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 commented 3 years ago

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.