Writing /
Choosing a static site generator in 2026
I’m rebuilding my personal site and running the same mini-site through Astro, Next.js and Eleventy before committing. The everyday action I care about most is “add a post”: drop a markdown file in a folder, push, done.
Here is the kind of code block the real blog will be full of:
export async function loadTalks(dir) {
const files = await fs.readdir(dir);
return Promise.all(
files
.filter((f) => f.endsWith(".json"))
.map(async (f) => JSON.parse(await fs.readFile(path.join(dir, f))))
);
}
If you can read the post you are looking at, markdown rendering and syntax highlighting both work in this spike.