Hello world
This is a placeholder so the blog builds with at least one post, the listing has
something to list, and /rss.xml has an item to validate against. Replace it.
Writing a post
Add a Markdown or MDX file under src/content/blog/. The filename becomes the
URL: src/content/blog/hello-world.md is served at /blog/hello-world/.
Frontmatter is validated against the schema in src/content.config.ts, so a
typo in a field name fails the build rather than shipping silently. title,
description and pubDate are required; updatedDate, heroImage, tags and
draft are optional.
Keeping a post out of the build
Two ways, and they differ:
draft: truein the frontmatter — committed, but excluded from the build, the listing and the feed.- Prefix the filename with an underscore (
_scratch.md) — not loaded at all.