💾 Archived View for duncan.bayne.id.au › gemlog › kiln-gemlog captured on 2023-04-19 at 22:23:40. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

➡️ Next capture (2024-02-05)

-=-=-=-=-=-=-

My Gemlog is now built with Kiln

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 Deedum on a Pixel 2

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

______

Back to Duncan Bayne's Gemlog

Home

Comment on this post

______

© Duncan Bayne 2022 - 2023. This work is licensed under a Creative Commons Attribution 4.0 International License.

Built with Kiln