What I Wanted to Do

I wanted to add a new page to my Astro site.

Basic Page Structure

src/
  pages/
    index.astro    → https://your-domain/
    about.astro    → https://your-domain/about
    posts/
      first.md     → https://your-domain/posts/first

Creating a Page with a Markdown File

---
title: 'Article Title'
date: '2026-05-08'
---

## Heading

Write the body content here.

Gotchas

  • Files placed outside src/pages/ will not become pages
  • The filename becomes the URL path as-is

Once you have multiple pages, it is a good idea to also set up SEO meta tags in Astro.

  • Fiverr - Find freelance developers and tech experts