Why this matters
Dynamic routes let one template generate many static pages. That keeps archive coverage broad while the codebase stays small.
Setup
Use [slug].astro for posts and [category].astro or [tag].astro for
archives. Generate paths from content collection data.
Implementation notes
Sort posts by date before passing them to templates. Keep slugs lowercase and human-readable so internal links remain predictable across deployments.
Final checklist
- Paths are generated from content
- Archive templates are reusable
- Slugs are stable and readable