Adding asciinema to Zola

2026-04-26

I wanted to add some way to display terminal recordings here. I use wezterm so it was an obvious choice to try asciinema and record with wezterm record.

It took a bit of work, but got it working. One of the quirks was actually getting the recording to display with Serene (the theme I am using).

In the end, I was able to add a short code as well, so after recording, I can simply write

{{ asciinema(src="demo.cast", autoPlay=true, loop=true, controls=false)
}}

in markdown.