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

Unable to change highlight syntax theme and codeblock size #67

Open
jabbaw0nky opened this issue Jun 29, 2024 · 0 comments
Open

Unable to change highlight syntax theme and codeblock size #67

jabbaw0nky opened this issue Jun 29, 2024 · 0 comments

Comments

@jabbaw0nky
Copy link

Issue 1

As the title suggests, I can't seem to change the codeblock theme. My config.yaml file is configured as follows:

assets:
disableHLJS: true

pygmentsUseClasses: false
markup:
highlight:
noClasses: false
codeFences: true
guessSyntax: true
style: "colorful"

The style variable changes nothing.

After digging, I was able to change the theme by executing this command:

hugo gen chromastyles --style monokai > assets/css/extended/monokai.css

But the theme only changes for light mode and not for dark mode. With this method, the dark mode remains on dracula.

FYI i tried to place the css from the hugo gen command insidde the assets/css/lib folder with the name chroma-dark.css as mentionned in the readme file but nothing change.

Issue 2

I'd like to know if it's possible to resize the codeblock so that I can directly view the entire code without having to scroll left and right.

image

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

1 participant