Hello, world
This is a sample post. Replace it or delete the src/content/posts/hello-world/ folder once there’s real content.
Code blocks
Fenced code blocks are highlighted at build time:
function greet(name: string): string {
// Comments render in a dimmer green
return `Hello, ${name}!`;
}
console.log(greet('world'));
Inline code looks like npm run dev.
Images
Put images next to the post and reference them with a relative path. Astro optimises them at build time.
Video
In .mdx posts, embed a YouTube video with its ID (the part after ?v= in the URL). The player only loads when it’s clicked.
Everything else
Blockquotes, bold, emphasis, links, lists and tables all work.
- one
- two
- three
