Working on a blog generator in bash
I've been working on a blog generator in bash. I've meant to do it before, but work has been overwhelming. It is named BLiG, for now.
The main features I want are:
- simple bash script
- simple structure
- markdown
- separate writing and editing from rendering allowing anyone to integrate their own generator (just edit the "render" function to suit your needs)
The principle is that any folder can be a blog. The only requirement is
that posts are organized in an yearly folder inside a src folder (eg
src/2024/some-title.md
). The output will depend on the software used for
the static generation. In my case I use
mdbook, so my render function just has
mdbook build
and mdbook serve
commands.
It is still very alpha but if you want to try it out please check it out