Building this site with Astro
·1 min read·#astro #web
This is a starter post. Delete it and write your own.
Why Astro
Astro ships zero JavaScript by default. Every interactive bit — the theme toggle here — is an island, so the rest of the page stays static HTML. That’s how this site loads instantly.
What’s inside
- MDX blog posts (this file)
- Live GitHub star counts, fetched at build time
- RSS + JSON feeds generated from the same content
- A no-flash dark/light theme toggle
// stars are fetched once, at build, and cached
const stars = await getStars(PROJECTS.map((p) => p.repo));
Edit src/config.ts to make the site yours.