Closed WebDucer closed 3 years ago
There is a known issue related to Hugo's caching which affects Wowchemy v5.0.0 Beta 2: https://github.com/gohugoio/hugo/issues/7944
The workaround is to set highlight = true
in params.toml
until the page caching is resolved with a Hugo update.
Feel free to contribute to the Hugo issue.
Describe the bug
In documentation, the
highlight
option is described, as be able to set globally and per site.If I set
highlight = false
inparams.toml
andhighlight: true
in page front matter, the code is not highlightet. As I can see, the CSS and JS files are included, but the<code>
block has no class set tohljs
, as this is set, when the global option ist set totrue
.To Reproduce
Steps to reproduce the behavior:
highlight = false
inparams.toml
highlight: true
for the single postExpected behavior
The code should be highlighted, if the option is off globally, but on for the page.
Technical details:
go.mod
): v0.0.0-20210123180413-7dbc1f73edfdhugo version
): 0.8.0 extendedIf applicable, add screenshots to help explain the issue.