Hi all,
I’m having trouble to switch Pygments from inline styles to classes.
Here’s my troubleshooting process. I really set the pygmentsUseClasses to true in config.toml:
pygmentsUseClasses: true
I did try adding and removing additional pygmentsStyle
variable, I tried both mentioned pygments variables in small caps. I tried restarting server numerous times after each change. I tried switching my config.toml to config.yaml (maybe the format was wrong; it was not). I also tried getting a new config.toml file, and adding pygmentsUseClasses onto it. No, it’s not the config
file.
I can’t find the issue – my website is showing Monokai code colouring, all in-line CSS, no matter how I try to set the pygmentsUseClasses
.
Am I missing something? Maybe I’m meant to customise the Pygments directly through bash or some setup files where it was installed?
Also, if somebody could confirm, does Hugo Pygments classes setting work at all?
cheers,
Roy