kevin@kiwikode:~$ cat posts/welcome-to-kiwikode.md
Welcome to kiwikode

This is the first post on kiwikode, a place for my findings, notes and how-tos. It doubles as a reference for what a post can contain, so feel free to delete it later.
Images
Put images in the same folder as the post and link them relatively:

Astro resizes and compresses them at build time.
Code blocks
Fenced code blocks are highlighted, and get a copy button on hover:
export function greet(name: string): string {
return `Kia ora, ${name}!`;
}
npm run dev
Inline code like npm run build works too.
Everything else
Blockquotes, bold, italics, links, lists and tables are all plain Markdown.
| Feature | How |
|---|---|
| Tags | tags: [one, two] in the frontmatter |
| Drafts | draft: true hides a post from the live site |
| Search | Automatic, built from every post |