Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code highlighting does not update #45

Open
sn0ot opened this issue Dec 31, 2020 · 2 comments
Open

Code highlighting does not update #45

sn0ot opened this issue Dec 31, 2020 · 2 comments

Comments

@sn0ot
Copy link

sn0ot commented Dec 31, 2020

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
Copy link
Owner

EmielH commented Jan 9, 2021

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
Copy link
Owner

EmielH commented Jan 18, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants