Update exampleSite config with correct baseURL format
dtcrout opened this issue · comments
Hi @dtcrout!
Is the build being served or just view as a static file? You'll need a server for the highlight.js to load and run. That's what handles the syntax highlight for code snippets.
I tested with hugo serve
and hugo serve --debug
and I see the expected output.
@siegerts , the contents of the generated public
folder is being served via GitHub Pages and that's where I'm seeing the syntax highlighting not working.
Hey!
I looked through your build and it looks like one of the stylesheets (style.css
) is timing out, causing the highlight portion to not run.
Add a trailing /
to the baseURL
var in your config.toml file. Hopefully that will load the asset from the right path.
I'll update the config in the exampleSite.
Thanks @siegerts , that seemed to solve the issue!