Welcome to your new blog

A 60-second tour of how this template works and where to start writing.

Welcome! If you can see this page, your blog is up and running. This post is a quick tour of how the template works.

How posts are organized

Every Markdown file you put under src/pages/blog/<topic>/<slug>.md becomes a post automatically. The folder it lives in becomes the post’s topic, and the file name (minus .md) becomes the URL slug. For example:

src/pages/blog/getting-started/welcome.md

https://yourblog.com/blog/getting-started/welcome

The blog index at /blog groups posts by topic for you, and the homepage shows the most recent posts. You don’t need to register your post anywhere — it just appears.

Frontmatter

Each post starts with a YAML frontmatter block:

---
layout: ../../../layouts/PostLayout.astro
title: Welcome to your new blog
description: A 60-second tour of how this template works and where to start.
date: 2026-05-06
author: md-blog
tags: [welcome, getting-started]
hero: /images/posts/welcome-hero.svg
---
FieldRequiredNotes
layoutyesUse PostLayout.astro for posts. Path is relative.
titleyesShown in the page header, browser tab, and meta tags.
descriptionnoUsed for previews, OG tags, and the homepage card.
datenoISO 8601. Drives sort order and the byline.
authornoDefaults to SITE.author from src/lib/site.ts.
tagsnoArray of strings, rendered as pills above the title.
heronoPath to a hero image — used in cards and at top of post.
draftnoWhen true, the post is hidden from listings.

What next?

Take a look at the other example posts to see what’s possible:

When you’re ready to make it yours, edit src/lib/site.ts, replace the contents of this folder with your own posts, and run npm run deploy.