Saait: a boring HTML page generator(codemadness.org) |
Saait: a boring HTML page generator(codemadness.org) |
> But I figured out that if all you have is a title and it's a one-line string, you can just use the `head` and `tail` command line utils to extract either the title string or the markdown body depending on which operation you're in the middle of, and you can still just use bash
I took a similar approach with mine (http://flukus.github.io/building-a-blog-engine.html) but it get's messy pretty quickly. In a future iteration I'm planning on using M4 templates instead, M4 is actually pretty nice outside of autoconf.
Pretty nifty.
When it works it's quite nice, and the live-reloading is cool. I can totally understand why people like it.
But it falls apart all the time on small mistakes, doesn't tell you when it does so, and doesn't tell you why it's failing to find anything at all simply because you entered a non-existent config value in the borderline-undocumented themes that refer to old config setups or just have copied Jekyll instructions. I've spent about half the time changing config or text and wondering why it wasn't updating, only to discover that the reloading was broken or that I had to delete some earlier-built stuff that it didn't detect needed changing. It has driven me away at least twice, and I still don't know how to find out what went wrong (much less what I need to do to fix it) when I break it.
I've actually been seriously considering switching to Jekyll just to see if it'd be more helpful for learning.
---
This, on the other hand, has a couple interpolation markers and everything else would be defined up-front. I can figure that out in a few minutes and probably use it correctly forever after.
I highly recommend it for any text heavy sites.
OpenBSD enthusiast Roman Zolotarev has ssg4, a static site generator that's a simple shell script.