1000 lines! What decadence!<p>This is what I use for my blog, it is 250 lines: <a href="https://gist.github.com/jes/88e3e587413d5794f69c281bdd14a27f" rel="nofollow">https://gist.github.com/jes/88e3e587413d5794f69c281bdd14a27f</a><p>(Joking aside: cool project, and I expect it is substantially more capable than my ridiculously-hacky version).
I've been toying with a project where you define your entire blog in one file (blog.json) and then you can pass that file to a generator (community built) and it will output html for you to deploy.<p>I wrote about it here -> <a href="https://ajaxdavis.com/post/Introducing-JSON-Blog/" rel="nofollow">https://ajaxdavis.com/post/Introducing-JSON-Blog/</a><p>I'm using the project to run my blog above.
I remember playing with these things in late nineties and making jokes at my friends creating bleeding edge CMSes with PHP and mSQL/MySQL I can get much faster than them. I wouldn't have believed things would come full circle over 20 years later.
Adding my own in here, 668 lines: <a href="https://github.com/mihaifm/smolpress" rel="nofollow">https://github.com/mihaifm/smolpress</a><p>Static generator + CMS (extremely lightweight), management interface and markdown editing.
The one I wrote for the FastComments Blog is 140 lines. Each post is a separate markdown file, and it has RSS support. I love using NodeJS for little scripts like this. Generates in about 200ms for the content we have today.<p><a href="https://github.com/FastComments/fastcomments-blog/blob/master/src/app.js" rel="nofollow">https://github.com/FastComments/fastcomments-blog/blob/maste...</a><p>There are hacks in that file. Beware the dragons.<p>Commenting support is or course done with FastComments...
I'm testing for same job bashblog -> <a href="https://github.com/cfenollosa/bashblog" rel="nofollow">https://github.com/cfenollosa/bashblog</a>