zhaohuabing / hugo-theme-cleanwhite

A clean, elegant blog theme for hugo
Apache License 2.0
730 stars 339 forks source link

How to change the color for codeblocks? #103

Closed xumj2021 closed 3 years ago

xumj2021 commented 3 years ago

Hi Huabing,

Thanks a lot for your very nice theme! I wonder how to change the color of the code blocks? Look forward to your reply. Have a nice day.

Best, Mengjie

xumj2021 commented 3 years ago

Found the solution. Just add the following codes into config.toml

[markup.highlight] anchorLineNos = true codeFences = true guessSyntax = true hl_Lines = "" lineAnchors = "" lineNoStart = 1 lineNos = true lineNumbersInTable = true noClasses = true style = "monokailight" tabWidth = 4