3 ms·
It was basically a pragmatic choice. I figured the following: - For most of the site, hand-jamming HTML works fine, because I have a small number of pages outs
by floren 3y ago
It was basically a pragmatic choice. I figured the following:
- For most of the site, hand-jamming HTML works fine, because I have a small number of pages outside the blog.
- For the blog, I wanted easy authoring, thus Markdown. I figured if I rendered it on each request, I wouldn't need to make a separate tool to regen stuff, I could just build it all into the server; any changes I made to the markdown would be instantly reflected on the site.
I wrote this in Go at a conference in 2011. Hugo didn't exist yet or I probably would have just used that.
edit: I initially wrote this on Plan 9, and it's so old that there's still a mkfile invoking go/8g and go/8l individually to build it. It's 265 lines of code, which does the static content, generates the blog stuff (including creating the blog "archive" page on-demand), and manages multiple domains so I don't have to invoke e.g. apache to use the same host for multiple sites.