Setting up this site

2026-09-09

这是一篇示例文章。把这个文件删掉,在 src/content/blog/ 里新建 .md 文件就是新文章。

文件顶部的 frontmatter 三个字段:

  • title —— 标题,必填
  • date —— 日期,必填,格式 YYYY-MM-DD
  • description —— 列表页显示的摘要,可选
  • draft: true —— 加上这行就不会被发布

正文直接写 Markdown,支持代码块、表格、引用:

def hello(name: str) -> str:
    return f"Hello, {name}"

建议:学术主页的博客不用勤更。三五篇讲清楚你在想什么的文章, 比每周一篇流水账有用得多。

← All notes