Now, replace Jekyll with any SSG and let a tool handle the build (Netlify, Vercel, CloudFlare Pages).
For your specific tweet/comment like post, I remember deploying quite a few instances of something called "P2" from WordPress for internal department updates, team updates etc.
WordPress P2: https://wordpress.org/themes/p2/
* A desktop app for creating static blogs, local preview, generates assets, optional deploy directly to Vercel. [1]
* A cron job which reads the paragraphs of a Notion page. Currently only generates an Atom/RSS feed from each paragraph. Inspired by [2], currently no source available.
Take a look at Astro[1]. Astro comes with a development server and it will not build a thing unless you want it to.
Also, in contrast to classic static site generators Astro relies on components instead of templates which reduces cognitive complexity dramatically (to me anyway).
[1]: https://astro.build/
But yeah, its syntax, with an out-of-the-box support of typescript, looks more enticing than Eleventy's nunjucks or webc, or its serverless plugin. Good to know that Astro doesn't prerender all pages in dev mode either.
[1] https://lucasdicioccio.github.io/dhall-section-demo.html
They seem fine for lengthy prose. You probably aren't going to write that many long-form blogs anyway — in the vicinity of several hundreds, maybe. After many years. So that's fine.
But what I've discovered about my writing habits is that I mostly tend to write short notes, about the size of a Hacker News comment. And those can easily number in thousands after several years of writing.
So how well is a static site generator suited for this? Do I want to build thousands of pages every time I start the site locally? I probably don't. But I can't find a reasonable static-site generator that will only build the requested pages locally, and build everything when deployed.
It's probably also silly to pre-generate a static html page for every such short posted note.
What's the most appropriate solution for such a writing pattern? Bite the bullet and set up a Wordpress or a Mastodon instance? That's a bit depressing.