My website is now built with Typst's new experimental HTML exporter

Anyone else want to use Typst as a static site generator?

Typst just added an experimental HTML export option (issue #5512)… so naturally I went ahead and tried to remake my website with it. It went pretty well, I’d say. (Not that there’s a lot on there to remake in the first place tbh.)

Here’s the source code (some interesting files to look at are global/common.typ, and the various .typ files in personal/). The live site itself is here.

This feature works fairly well already, and the output looks identical to what I had before, which is very nice. Of course this is still heavily work in progress, so some workarounds are needed (such as for paragraphs), but that’s fine.

I can’t wait to see how this develops.

14 Likes

A bit mad to do it at this point already, but very cool! :grinning:

5 Likes

Hey, it’s already much better than what I had before! (It was using GNU M4 which is probably mad in and of itself)