Overview
Blog content is managed using Fumadocs and stored inweb/next/content/blog/.
Content Structure
- Location:
web/next/content/blog/ - Format: MDX files with frontmatter
- Configuration: Defined in
web/next/source.config.ts - Navigation: Managed in
web/next/content/blog/meta.json
Creating a Blog Post
---
title: My New Post
description: A brief description of my post.
---
## Introduction
Your blog content goes here...
{
"pages": [
"index",
"getting-started-zero-starter",
"type-safe-apis-hono-rpc",
"my-new-post"
]
}
Configuration
Blog source is configured inweb/next/source.config.ts:
web/next/source.config.ts
Key Configuration Options
dir: Directory containing blog content (content/blog)includeProcessedMarkdown: Enables processed markdown for llms.txt endpoint
Navigation Structure
Pages are listed inweb/next/content/blog/meta.json:
web/next/content/blog/meta.json
MDX Features
Code Blocks
Images
Components
You can import and use React components in your MDX:Best Practices
- Use descriptive file names:
my-new-feature.mdxinstead ofpost1.mdx - Write clear descriptions: Help readers understand what the post is about
- Keep URLs clean: File names become URL slugs
- Update meta.json: Always add new posts to the navigation
- Use code blocks: Include syntax highlighting for code examples
- Add images: Visual content improves engagement
Accessing Blog Posts
Blog posts are accessible at:- Web UI:
/blog/post-name - AI-friendly:
/blog/post-name.md(markdown format for LLMs) - Index:
/blog.md(list of all blog posts)