首先fork此项目https://github.com/imyuanli/next-blog,我fork后的项目地址是https://github.com/briteming/iynb,然后访问https://github.com/briteming/iynb/tree/master/posts,新建源帖test.mdx,内容为:
---
title: 测试
summary: 这是一篇文章
date: 2025-11-29T08:11:00
tags: ["misc1", "misc2", "misc3"]
draft: false
---
这是测试。
看看如何?
( 详见https://github.com/briteming/iynb/blob/master/posts/test.mdx?plain=1)
然后访问vercel.com/new ,导入项目https://github.com/briteming/iynb,(注意:在点击import按钮后所出现的页面里,Build Command的值设为yarn build ,
而Install Command的值设为yarn)
点击deploy按钮,等待部署完成,部署完成后,我得到网址https://iynb-ym.vercel.app/
新建源帖后,博客网站2分钟内就会更新。
项目地址:
https://github.com/imyuanli/next-blog
https://github.com/briteming/iynb
demo blog:
https://iynb-ym.vercel.app/
https://iynb-ym.vercel.app/blog

No comments:
Post a Comment