博客开张

这是博客的第一篇文章,用于验证文章列表与详情页是否正常。

如何写一篇新文章

  1. 在 docs/blog/ 下新建 xxx.mdx;
  2. 填写 frontmatter;
  3. 把文件名(不带后缀)加入 docs/blog/_meta.json 的「文章」分组;
  4. 保存后列表页会按日期倒序自动展示,无需手动维护索引。
---
title: 文章标题
description: 一句话摘要,显示在列表卡片上
date: 2026-10-27
authors: ['花辞树']
tags: ['随笔']
sidebar: false
pageType: doc
---

正文从这里开始。

列表页依赖 Rspress 运行时提供的 usePages(),它会自动收集 /blog/ 下的所有页面,读取 frontmatter 中的 date、description、authors、tags。