你好,世界

这是一篇示例文章。你可以在 src/content/posts/ 目录下新建 .md 文件来添加新文章。

如何写文章

每篇文章顶部都有一段 frontmatter,用来描述文章的元信息:

  • title:标题(必填)
  • description:摘要,会显示在列表和 SEO 中
  • pubDate:发布日期(必填)
  • tags:标签数组
  • draft:设为 true 时不会被发布

Markdown 支持

正文支持标准 Markdown 语法,比如加粗斜体链接

引用块看起来是这样的。

也支持代码块:

console.log("Hello, world!");

就是这么简单。