首先fork此项目:https://github.com/joelhans/nextjs-mdx-bidirectional-links,我fork后,得到的项目地址是https://github.com/brightmann/nmbl
访问https://github.com/brightmann/nmbl/tree/main/content/articles,在这里,新建源帖fh.mdx,内容为:
---
title: 战马
---
此处写正文或html codes.
( 详见https://github.com/brightmann/nmbl/blob/main/content/articles/fh.mdx?plain=1)
然后,访问vercel.com/new ,导入项目https://github.com/brightmann/nmbl
Build Command栏填入yarn build
Install Command栏填入yarn
然后点击底部的deploy按钮,等待部署完成。部署完成后,我得到网址:
https://nmbl-nine.vercel.app/
项目地址:
https://github.com/joelhans/nextjs-mdx-bidirectional-links
https://github.com/brightmann/nmbl
演示博客:
https://nmbl-nine.vercel.app/,帖子是按字母顺序,从左到右,然后从上到下排列的。
https://nmbl-nine.vercel.app/articles/fh 能显示视频
No comments:
Post a Comment