docs: block code doesn't always has a background #100

This commit is contained in:
Sören Weber 2021-09-23 21:46:32 +02:00
parent 3224bfb1a3
commit 714b790f0e
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589
2 changed files with 4 additions and 2 deletions

View file

@ -27,6 +27,7 @@ relativeURLs = true
[markup] [markup]
[markup.highlight] [markup.highlight]
style = "monokai" style = "monokai"
guessSyntax = true
[markup.goldmark.renderer] [markup.goldmark.renderer]
unsafe= true unsafe= true

View file

@ -49,12 +49,13 @@ Renders to:
Hugo comes with a [remarkable list](https://gohugo.io/content-management/syntax-highlighting/#list-of-chroma-highlighting-languages) of supported languages. Hugo comes with a [remarkable list](https://gohugo.io/content-management/syntax-highlighting/#list-of-chroma-highlighting-languages) of supported languages.
## Configuration ## Recommended configuration
You can choose a color theme from the [list of supported themes](https://xyproto.github.io/splash/docs/all.html) and add it in your `config.toml` You can choose a color theme from the [list of supported themes](https://xyproto.github.io/splash/docs/all.html) and add it in your `config.toml`
````toml ````toml
[markup] [markup]
[markup.highlight] [markup.highlight]
style = "monokai" style = "monokai" # choose a color theme or create your own
guessSyntax = true # avoid unstyled code if no language was given
```` ````