跳到主要内容

创建一篇博客文章

Docusaurus 会为每篇博客文章生成一个独立页面,同时提供博客索引页标签系统RSS 订阅等完整功能。

创建第一篇文章

blog/2021-02-28-greetings.md 新建一个文件:

blog/2021-02-28-greetings.md
---
slug: greetings
title: Greetings!
authors:
- name: Joel Marcey
title: Co-creator of Docusaurus 1
url: https://github.com/JoelMarcey
image_url: https://github.com/JoelMarcey.png
- name: Sébastien Lorber
title: Docusaurus maintainer
url: https://sebastienlorber.com
image_url: https://github.com/slorber.png
tags: [greetings]
---

恭喜!你的第一篇文章已经完成。

可以随意修改、尝试不同内容。

现在,你可以在 http://localhost:3000/blog/greetings 访问它。