首先fork此项目:https://github.com/owolfdev/next-template-mdx-shad,我fork后,得到的项目地址是https://github.com/brightmann/ntms,
访问https://github.com/brightmann/ntms/tree/main/content/blogs,在此处新建源帖(即add file),我新建了源帖fh.mdx,内容为:
export const metadata = {
title: "战马",
publishDate: "2026-06-13T00:02:00",
description:
"这是一篇文章",
category: "misc",
};
此处写正文或html codes.
( 详见https://github.com/brightmann/ntms/blob/main/content/blogs/fh.mdx?plain=1)
然后,访问vercel.com/new ,导入项目https://github.com/brightmann/ntms
Build Command栏填入npm run build
Install Command栏填入npm install
然后点击底部的deploy按钮,等待部署完成。部署完成后,我得到网址:
https://ntms-tau.vercel.app/
项目地址:
https://github.com/owolfdev/next-template-mdx-shad
https://github.com/brightmann/ntms
演示博客:
https://ntms-tau.vercel.app/
https://ntms-tau.vercel.app/blog
https://ntms-tau.vercel.app/blog/fh 能显示视频