A static site generator written in POSIX shell
Summary
This post documents gen.sh, a static site generator written in POSIX shell that converts Markdown posts into a full blog site with templates, feeds, and a sitemap. It explains how frontmatter is parsed, how Markdown is rendered with comrak, and how envsubst is used for templating, all in a fast, one-pass build without incremental caching. It also covers practical aspects like self-hosting, image handling tweaks, and integrating with GitHub Actions for automated builds.