This post exists only so you have something to experiment with. Edit anything you like, hit save, and reload http://localhost:4321/news/example-sandbox to see the result. The frontmatter at the top of the file controls how the post appears in the list, in the RSS feed, and on its own page.
The body uses plain Markdown. Below is every formatting block this section supports, so you can see what they look like before writing a real post.
A section heading
This is a level-two heading. Use it to break a post into sections. Level-three headings (###) work too, for sub-sections within a section.
Within paragraphs you can write bold text to emphasise something firmly, or italic text for softer emphasis. You can also drop in a link inline and it will inherit the site’s link styling automatically.
When you reference code or a filename, you can wrap it in backticks — like src/content/news/ — and it will render in a monospace font with a subtle background.
Lists
A simple bullet list:
- The first item
- The second item, slightly longer to show how multi-line items wrap inside the bullet column
- A third item
An ordered list, for when the order matters:
- First, do this
- Then this
- And finally this
Quotes
A block quote, useful for pulling out a line or attributing something:
Long-hold investing is mostly uneventful by design. There’s nothing to report most quarters. That’s a feature.
A horizontal rule
Use three hyphens on a line by themselves to insert a horizontal rule. It looks like this:
Useful for separating loosely related sections without needing a heading.
Code blocks
For longer code, use fenced code blocks. Specify the language after the opening backticks for syntax-aware rendering:
npm run dev
function example(value: string): string {
return value.trim().toLowerCase();
}
When you’re done
This file is just a scratchpad. When you’re ready to write a real post:
- Copy this file and rename it to your post’s slug (for example,
notes-on-something.md) - Replace the title, description, date, and tags in the frontmatter
- Replace the body with your writing
- Delete this example, or set
draft: truein its frontmatter so it doesn’t appear in production builds
If you forget step four, the example will go live alongside your real post — harmless, but obvious to anyone visiting the site.