Skip to content

Hello, World — A Pragmatic Astro Stack

A first post demonstrating MDX, Shiki dual themes, and inline components.

1 min read

Welcome to the blog. This post is written in MDX, which means I can mix Markdown with JSX components and embed live code samples.

Code blocks with Shiki

Syntax highlighting runs at build time — zero runtime JS, perfect for SEO crawlers.

src/example.ts
type User = { id: string; name: string };
 
export function greet(user: User): string {
  return `Hello, ${user.name}`;
}

Inline diff highlighting

- console.log('old')
+ console.log('new')

Terminal commands

docker run --rm -it node:20-alpine sh

Why this stack

Edit src/content/blog/hello-world.mdx to make it your own, then run npm run dev to see changes.

Lists & tables

FeatureStatus
MDX
Sitemap✓ auto
RSS✓ auto
OG images✓ build-time
Search✓ Pagefind

That’s it. Happy hacking.