2

我正在使用Docusaurus V2建立一个网站。

初始项目中已经有 3 个博客条目。我想再添加一个。我在文件夹中创建了一个4th.mdx文件blog。然后添加了以下内容:

---
id: 4th
title: Hello
author: Endilie Yacop Sucipto
authorTitle: Maintainer of Docusaurus
authorURL: https://github.com/endiliey
authorImageURL: https://avatars1.githubusercontent.com/u/17883920?s=460&v=4
authorTwitter: endiliey
tags: [hello, docusaurus]
---

然后,我想我需要将 id4th放在其他文件中的某个位置,对吧?有谁知道我应该把它放在哪里?

4

1 回答 1

0

博客文件是从blog目录中读取的,id不需要添加到其他地方。即使在创建第 4 个文件之后,您是否也没有看到新条目?

于 2019-08-19T06:57:03.027 回答