Pages & Routing
Astro uses file-based routing from src/pages/.
Examples:
src/pages/index.astro        -> /src/pages/about.astro        -> /aboutsrc/pages/blog/first-post.md -> /blog/first-postDynamic routes:
src/pages/blog/[slug].astro  -> /blog/my-postCollection routes with getStaticPaths:
---export async function getStaticPaths() {  const slugs = ["hello", "world"];  return slugs.map((slug) => ({ params: { slug } }));}
const { slug } = Astro.params;---<h1>Post: {slug}</h1>