A static site generator written in POSIX shell

13 points by aashvik


A walk through the design, tradeoffs, and questionable sed / eval of the POSIX shell script that builds my blog.

dhamidi

I feel like somewhere there is a missed opportunity for abstraction: if using envsubst and comrak are okay, then why stop there?

Introducing frontenv that converts frontmatter into variable assignments would make handling frontmatter much less brittle, then follow up with something that allows you to create html components, etc and drive it all from gen.sh is very much in the spirit of using a command language.

It forces you to abstract :)

cfenollosa

Pretty cool. I developed bashblog a few years ago with the same idea in mind!