Is this thing on?
A few tests:
Time to run a few tests
Simple syntax highlighting
YAML syntax highlighting
hello:
world: "it worked?"
Nix syntax highlighting?
{
nix.enable = true;
}
Ok well that's pretty cool, I didn't configure anything other than
[markdown.highlighting]
light_theme = "dracula"
dark_theme = "dracula"
in my Zola config.toml when running zola serve.
Line numbers and other config for code blocks
this:
yaml:
is: 1
yaml:
and: 2
its:
cool: 3
Hmm I'll need to play with that, the line numbers have not enough padding.
Getting it onto CloudFlare Pages
I wrote up a simple Forgejo Action yaml to publish to Pages, but then I got no styles.
Turns out I also needed
Content-Security-Policy: default-src 'none'; img-src 'self'; object-src 'none'; script-src 'none'; style-src 'self' 'unsafe-inline'; style-src-attr 'unsafe-inline'
in static/_headers for Zola Bear Blog to let me pull in my custom styles.