Example Blog Post
This is an example blog post written in Markdown. When you’re ready to write your first real post, just:
- Create a new
.mdfile insrc/pages/blog/ - Add frontmatter with title, date, and description
- Write your content in markdown
How this works
Astro automatically turns markdown files in src/pages/ into HTML pages. The frontmatter at the top configures the page:
---
layout: ../../layouts/Layout.astro
title: "Your Post Title"
date: "2026-01-15"
description: "Brief description for SEO and previews"
---
Markdown features
You get all the standard markdown features:
- Bold text
- Italic text
inline code- Links
Code blocks
function greet(name) {
console.log(`Hello, ${name}!`);
}
Lists and more
Pretty much anything you’d expect from markdown works here. When you’re ready, delete this example and create your own posts.