Posted on 2022-09-24
After a successful evening's messing about, this Gemlog is now built using kiln 🎉
A simple static site generator
Here's how it looks:
Gemlog in Lagrange on a PinePhone
Gemlog in Emacs on my FreeBSD laptop
Along the way I found an interesting bug in kiln; after accidentally creating a broken symlink (by moving a file that happened to be in git annex), kiln was reporting that my entire static directory was missing.
This turns out to be a bug. No disrespect to the author of kiln, because I've seen a bazillion variants on this bug over the years: reading more into an error than you can possibly know at the time. In this *particular* case, assuming that a file not found error is always caused by a missing static directory 😇
$ tree . ├── config.toml ├── content │ └── _index.gmi ├── public │ ├── atom.xml │ └── index.gmi ├── static │ └── no-such-file -> ../no-such-file └── templates └── _default ├── atom.xml ├── index.gmi └── page.gmi 5 directories, 8 files $ kiln build 2022/09/24 12:22:36 static_dir 'static' does not exist
So I got to learn how to use the (nifty!) patchset creation UI in sourcehut, and submitted my first (trivial!) bugfix along the way:
[PATCH kiln] Display detailed error message on static build failure
______
______