Blog Feature Usage Guide
Rspress Theme AIm provides complete blog functionality with article management, categories, tags, and multi-language support.
Feature Highlights
- Automatic List Generation: Automatically display blog article list based on components
- 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
- Article Navigation: Automatically generate previous/next navigation
- Responsive Design: Adapts to various screen sizes
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

The BlogListAuto component will automatically:
- Get all blog articles for the current language
- Sort by date (newest first)
- Display article list with title, date, author, categories, tags and summary
- Support responsive design
Configure Blog Navigation
_meta.json Configuration
The _meta.json file is used to configure the sidebar navigation structure of blog articles:
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:
Note: Chinese version link should be /zh/blog, English version link should be /en/blog.
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/(automatically redirects based on language) - Chinese blog:
/blog/ - English blog:
/en/blog/ - Single article:
/blog/welcomeor/zh/blog/welcome
Blog List Styles
The blog list component provides the following styles:
- Article Card: Borderless design, clean and beautiful
- Category Tags: Blue background, highlighted display
- Tags: Gray background, auxiliary classification
- Responsive Layout: Automatically adjusts on mobile devices
Style file location: theme/styles/blog.css
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 - Sidebar Setting: Blog articles recommended to set
sidebar: false - Image Management: Place images in the
docs/public/directory - File Naming: Use meaningful filenames for easy maintenance
FAQ
Q: Why doesn't the blog list display articles?
A: Please check:
- Whether the file is in the
docs/zh/blog/ordocs/en/blog/directory - Whether frontmatter contains
titleanddatefields - Whether the filename matches the reference in
_meta.json
Q: How to change the blog list sorting method?
A: Modify the sorting logic in theme/components/Blog/index.tsx:
Q: How to customize blog styles?
A: Edit the theme/styles/blog.css file, you can modify:
- Article card styles
- Category and tag styles
- Navigation styles
- Responsive layout
Q: What Markdown syntax does blog articles support?
A: Rspress supports standard Markdown syntax, including:
- Headings, paragraphs, lists
- Code blocks (with syntax highlighting)
- Links, images
- Tables
- Quotes
- Task lists
- MDX components
Extended Features
Add More Metadata
You can add more fields in the BlogItem interface:
Integrate Comment System
You can integrate third-party comment systems in blog articles, such as Giscus, Gitalk, etc.
Add Search Functionality
You can integrate search plugins to provide blog article search functionality.
Examples
Complete Blog Article Example
View docs/en/blog/welcome.mdx and docs/zh/blog/welcome.mdx for complete examples.
Blog Homepage Example
View docs/en/blog/index.mdx and docs/zh/blog/index.mdx for blog homepage configuration examples.
Reference Resources
- Rspress Official Documentation: https://rspress.rs
- Rspress GitHub: https://github.com/web-infra-dev/rspress
- Blog List Component:
theme/components/Blog/index.tsx - Blog Styles:
theme/styles/blog.css