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

Found another curious bug! #14

Closed
ZhaoTim opened this issue Oct 23, 2019 · 1 comment
Closed

Found another curious bug! #14

ZhaoTim opened this issue Oct 23, 2019 · 1 comment

Comments

@ZhaoTim
Copy link

ZhaoTim commented Oct 23, 2019

HI:
It's me again.....And I found a bug , it makes me confuse....
here is my blog : HomePage

here is the situation:
when I texted a code block after a ordered list / unordered list, the code indent will be something wrong....

t

t

But when I delete the ordered list , everything will be fine?????

t

t

And I also want to know how to change the code theme....

Thx a lot!

@reuixiy
Copy link
Owner

reuixiy commented Oct 23, 2019

Hi @ZhaoTim,

For the code indent problem, I think that may be the problem of Hugo's Markdown rendering engine blackfriday. So perhaps you should submit an issue there or in Hugo.

For code highlighting theme, you can easily customize that.

  1. Go to https://xyproto.github.io/splash/docs/longer/all.html to find a theme you enjoy.
  2. Run the following command (modify monokai to the name of the theme you choose).
    ~/blog $ hugo gen chromastyles --style=monokai > light/dark.scss
    
  3. Move the generated light.scss file to ~/blog/assets/scss/_common/_highlight/ directory, which will override MemE’s light.scss.

Similarly, change light.scss to dark.scss if you want to customize MemE’s code highlighting theme for dark mode. In addition, be sure to replace all .chroma in the dark.scss file with .chroma-dark.


For more https://gohugo.io/content-management/syntax-highlighting/

@reuixiy reuixiy closed this as completed in 8c3cb2b Jan 8, 2020
ulmefors pushed a commit to ulmefors/hugo-theme-meme that referenced this issue Jan 9, 2020
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