Configure the Blog of Your Website
The blog is configured in the content directory. Each markdown file in the content directory is a blog post.
The blog is automatically converted to blog posts (Server-Side Rendered). All posts are sorted by date in descending order, displayed on the /blog page.
Blog Metadata
You can configure various metadata for your blog in the src/data.tsx file.
blogDescription: The description shown in the/blogpage.blogCharacter: The character to be displayed in the Opengraph Image. See OG Image for more details.
Add a Blog Post
To create a new blog post, simply add a .mdx file to the content directory.
The title, date, and author for each blog post are automatically extracted from the file and displayed with the post.
Optionally, if you wish to customize the Opengraph Image for your blog post, you can update the blogInfo in the src/data.tsx file.
Chinese Support
By default, only .mdx files in the content directory are included on the English blog list page (/blog). For the Chinese blog list page (/zh/blog), posts are collected from the content/zh directory.
If there are blog posts with the same filename in both content and content/zh, switching languages will automatically redirect to the corresponding version. The appropriate metadata will also be applied.