Blog Feature Usage Guide
Rspress Theme AIm implements blog functionality based on Rspress's conventional routing system.
Feature Highlights
- Conventional Routing: Automatically generate routes based on file system
- Markdown/MDX Support: Write articles using standard Markdown or MDX format
- Frontmatter Metadata: Support for title, date, author, categories, tags and other metadata configuration
- Multi-language Support: Independent management of Chinese and English blogs
- Sidebar Navigation: Automatically generate sidebar navigation for blog articles
Directory Structure
Creating Blog Posts
1. Create MDX File
Create a .mdx file in the docs/zh/blog/ or docs/en/blog/ directory.
2. Configure Frontmatter
Add YAML frontmatter configuration at the beginning of the file:
Frontmatter Field Description
3. Write Article Content
Use Markdown syntax to write article content after the frontmatter:
Links and Images

Configuration Description
section-header: Create section header- String value: Corresponds to
.mdxfilename (without extension) - Order: Display navigation items in the order of the array
Update Main Navigation
Add blog entry in _nav.json:
Blog Homepage
The index.mdx file is the blog homepage, which can include:
- Blog introduction
- Latest articles list
- Blog usage instructions
Example content:
File Naming Conventions
- Use lowercase letters, numbers, and hyphens
- Avoid spaces and special characters
- Recommended format:
YYYY-MM-DD-title.mdx(e.g.,2026-03-17-welcome.mdx)
MDX Features
Rspress supports MDX, you can use React components in Markdown:
Accessing the Blog
- Blog homepage:
/blog/ - Single article:
/blog/welcome(filename iswelcome.mdx)
Best Practices
- Keep Consistency: Use unified frontmatter field naming
- Date Format: Use
YYYY-MM-DDformat uniformly - Categories and Tags: Reasonably use categories and tags for easy article archiving
- SEO Optimization: Add
descriptionfield for important articles - Image Management: Place images in the
docs/public/directory
Comparison with Official
Consistent with Rspress official blog implementation:
- ✅ Use conventional routing
- ✅ Use
.mdxfile format - ✅ Use frontmatter to configure metadata
- ✅ Use
_meta.jsonto configure navigation - ✅ Support multiple languages
Next Steps
- View example article:
docs/en/blog/welcome.mdx - Refer to official implementation: https://github.com/web-infra-dev/rspress/tree/main/website/docs/en/blog
- Read Rspress documentation: https://rspress.rs