Hello, World: The Story Book
Welcome, traveler.
This post is a story book: every “page” below is a small, copy‑pasteable example of what I can write in this blog. If I can read it, I can write it.
Page 1 — Headings, paragraphs, and a little atmosphere
The Library of Markdown is quiet at first. Then I add a heading, and the room knows where to look.
A smaller heading (h3)
Paragraphs are just text separated by blank lines. I keep them short. I let them breathe.
Page 2 — Emphasis and inline code
Sometimes I whisper in italics. Sometimes I speak in bold.
When it’s time to name something exactly, I use inline code like src/content/posts/en/hello-world.md or npm run build.
Page 3 — Links (internal and external)
- Internal link: I link to the About page.
- External link: I link to Astro.
Page 4 — Lists (unordered, ordered, nested, tasks)
Unordered lists feel like collecting small artifacts:
- A pocket watch
- A pencil
- A map
- Folded
- Slightly torn
Ordered lists feel like a plan:
- Write a title
- Add a description
- Tell a story
Task lists (great for checklists):
- Create a post
- Add a TypeScript code block
- Add a second chapter
Page 5 — Blockquotes (for narration, notes, and dialogue)
“A blog,” said the Librarian, “is just a shelf that never runs out of room.”
I can also stack thoughts:
Like a quote inside a quote.
Page 6 — Images
I can embed images from public/ (or absolute URLs). Here’s the site favicon:
Page 7 — Tables (for quick comparisons)
| Component | Use it for | Example |
|---|---|---|
| Headings | Structure | ## Chapter |
| Blockquotes | Notes / voice | > Like this |
| Tables | Comparison | This table |
| Code fences | Demos | See below |
^ This is a table.
Page 8 — Code fences (syntax highlighted)
TypeScript (your original “good example,” expanded into something more story-friendly):
type Language = 'en' | 'zh';
export interface StoryPage {
title: string;
content: string;
}
export function formatDate(date: Date, lang: Language): string {
return date.toLocaleDateString(lang === 'zh' ? 'zh-CN' : 'en-US', {
year: 'numeric',
month: 'long',
day: 'numeric',
});
}
Bash (great for setup instructions):
npm install
npm run dev
npm run build
JSON (nice for examples/config snippets):
{
"title": "Hello, World: The Story Book",
"tags": ["meta", "storybook"]
}
Diff (handy for “what changed?” moments):
- title: "Hello, World"
+ title: "Hello, World: The Story Book"
Page 9 — A tiny “frontmatter” reminder
Every post starts with frontmatter (YAML) at the top:
---
title: "Your Post Title"
description: "A short summary used for previews and SEO"
date: 2026-01-11
tags: ["tag1", "tag2"]
draft: false
updated: 2026-01-12
image: "/some-cover.png"
---
The End (for now)
That’s the point of a story book: it’s not just telling me what the blog supports — it’s showing me how it looks when it renders.
When I’m ready, I copy a page, change the words, and keep walking.