name, description
| name |
description |
| astro-static |
Astro static site template principles. Content-focused websites, blogs, documentation. |
Astro Static Site Template
Versions reflect the latest stable line verified 2026-05. Pin to the current stable when scaffolding.
Tech Stack
| Component |
Technology |
| Framework |
Astro 6.x |
| Content |
MDX + Content Collections (Content Layer API) |
| Styling |
Tailwind CSS v4 (@tailwindcss/vite) |
| Integrations |
Sitemap, RSS, SEO |
| Output |
Static/SSG |
Directory Structure
Key Concepts
| Concept |
Description |
| Content Layer API |
Collections defined in src/content.config.ts with loaders (glob/file) + Zod schemas |
| Islands Architecture |
Partial hydration for interactivity |
| Zero JS by default |
Static HTML unless needed |
| MDX Support |
Markdown with components |
Setup Steps
npm create astro@latest {{name}}
- Add integrations:
npx astro add mdx sitemap
- Add Tailwind v4:
npx astro add tailwind (installs @tailwindcss/vite, not the legacy @astrojs/tailwind)
- Define collections in
src/content.config.ts using loaders + Zod schemas
npm run dev
Deployment
| Platform |
Method |
| Vercel |
Auto-detected |
| Netlify |
Auto-detected |
| Cloudflare Pages |
Auto-detected |
| GitHub Pages |
Build + deploy action |
Best Practices
- Use Content Collections for type safety
- Leverage static generation
- Add islands only where needed
- Optimize images with Astro Image