Javascript 我可以在不直接编辑的情况下将特性插入标记文件吗?
我正在使用NextJS创建一个简单的博客,我的帖子位于项目内部的Javascript 我可以在不直接编辑的情况下将特性插入标记文件吗?,javascript,markdown,Javascript,Markdown,我正在使用NextJS创建一个简单的博客,我的帖子位于项目内部的\u posts文件夹中。它们中的每一个都是具有以下结构的.md文件: --- title: Hello slug: hello-post createdAt: 10-10-2020 short: description here cover <- the problem is here --- ...Rest of the post here --- 标题:你好 斯拉格:你好,波斯特 创建日期:10-10-2020 短:
\u posts
文件夹中。它们中的每一个都是具有以下结构的.md
文件:
---
title: Hello
slug: hello-post
createdAt: 10-10-2020
short: description here
cover <- the problem is here
---
...Rest of the post here
---
标题:你好
斯拉格:你好,波斯特
创建日期:10-10-2020
短:描述在这里
盖