Every post here is a file in content/blog, either .md or .mdx. There is no database, no
CMS, and no build step to remember — the index reads the folder, and the route renders the file.
What the frontmatter carries
title— shown on the index and in the page titledate— sorts the index, newest firstdescription— the line under the title on the index
Everything else is markdown
Links look like this, quotes look like:
The layout follows what the page has to say, not a template.
GitHub-style callouts work too:
Caution
The marker has to sit on its own first line, exactly as GitHub writes it.
And code keeps its own tile:
app/util/posts.ts
1234export async function getPosts(): Promise<Post[]> { const files = await readdir(dir); return Promise.all(files.map(read));}Note
NOTE の例
Tip
TIP の例
Important
IMPORTANT の例
Warning
WARNING の例
Caution
CAUTION の例