Sample post: hello, world
This is a sample post. It exists to show how blog posts are written and rendered. Replace it before launch.
Frontmatter
Every post is an .mdx file in src/content/blog/. The file name becomes the URL slug, so this
file is served at /blog/hello-world/. Frontmatter is validated by the schema in
src/content.config.ts, so a missing title or a malformed date fails the build.
MDX
MDX lets you mix Markdown with components:
This blockquote is rendered by a component defined inside the post.
Code blocks are highlighted at build time with colors from the design tokens:
const lobby = await connect({ game: 'my-game' });
lobby.on('player:join', (player) => console.log(`${player.name} joined`));
The snippet above is illustrative only and does not reflect the real API.