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.
Related Articles
- How to Deploy Astro to Cloudflare Pages
- How to Auto-Generate robots.txt and Sitemap in Astro
- Google Search Console HTML File Verification with Astro and Cloudflare Pages
- How to Read Cloudflare Pages Build Logs and Fix Errors
Recommended Services
- Fiverr - Find freelance developers and tech experts