mrmierzejewski / hugo-theme-console

Minimal and responsive Hugo theme inspired by the system console, crafted for optimal performance with an average page load time of under one second.
MIT License
449 stars 129 forks source link

terminal.css overriding highlight styling #26

Closed zachy9 closed 2 years ago

zachy9 commented 3 years ago

When using the {{ highlight }} shortcode for codeblocks, the terminal.css overrides the color settings of the hljs style that I set in the config file. Is there a simple way to change this so that the hljs style setting takes precedence?

dangmoody commented 2 years ago

Hi,

So I think I found a fix for this as I had the same problem.

This Hugo theme is using Terminal 0.7.1 but Terminal 0.7.2 appears to have fixed this problem:

https://github.com/Gioni06/terminal.css

So if you download that, and in the baseof.html replace the link to the terminal.css then inline code blocks should just work.

At least, this worked for me.

mrmierzejewski commented 2 years ago

Updated.