new example

New Post Title

This is a new blog post to demonstrate the dynamic routing.

New Post Title

This is a new blog post that demonstrates how the dynamic routing works in Astro.

How Dynamic Routes Work

When you create a markdown file in the src/content/blog/ directory, Astro automatically:

  1. Reads the frontmatter (the section between --- markers)
  2. Generates a static page at /blog/[filename]
  3. Makes the content available through the content collection

Benefits

  • No manual page creation: Just add markdown files
  • Automatic routing: URLs are generated from filenames
  • Type safety: Frontmatter is validated against your schema
  • Performance: Pages are pre-built at build time

Try adding more markdown files to see more pages automatically generated!