If you don't write one, the chance is good, your blog would stay empty.
If you don't write one, the chance is good, your blog would stay empty.
In all seriousness does everyone and their mom write a static site generator? I did because its fun and easy. Off the shelf ones can be cumbersome and not work quite how I want them to.
I'm not a professional programmer and it feels like most of these are for people who already work with various frameworks professionally and know their way around these things. I am too old to spend time trying to figure out all the frameworks so I'd rather just whip up something with my half-assed skills and DIY.
I'll probably do another one again soon, just so I don't have to rewrite my HTML / RSS by hand to publish another post.
Lua is a nice data language, so I just put the data and the code and the HTML fragments into one Lua file, no more than 200 lines. No worries about injection since it's all my data with no backend code at runtime.
This is why I wrote mine! You just put all your markdown in one folder, run it, then collect your HTML in another folder.
Yeah, that's exactly why I reinvent wheels!
I ended up forking an existing templating language and customizing it into a static site generator. I'm not sure what's more difficult: changing other people's code or doing it from scratch.
But yeah, I get what you mean. It's definitely the hardest thing to do.