Hello, world: how posts work on this blog
This post is both a test and a template. Copy this file, change the front
matter (the block between the --- lines above), and write your own post below it.
How a post is stored
Every post is a Markdown file in src/content/blog/. The file name becomes
the address, so hello-world.md is served at /blog/hello-world/.
The front matter must contain:
title: shown on the list page and as the page heading.description: one sentence summary.pubDate: the publish date, writtenYYYY-MM-DD.updatedDate(optional): set it when you revise a post.draft(optional, defaultfalse): settrueto keep a post out of the published site while you work on it.
If a required field is missing, npm run build stops and names the field.
Writing
Normal Markdown works: emphasis, bold, links, lists, and
inline code.
console.log('code blocks work too');