首先fork此项目https://github.com/ChangoMan/nextjs-mdx-blog,我fork后的地址是
https://github.com/briteming/cnmb/, 然后访问
https://github.com/briteming/cnmb/tree/main/posts,新建源帖:
---
title: 测试
description: 这是一篇文章
date: 2025-11-22T12:10:00
---
这是测试。
看看如何?
(详见https://github.com/briteming/cnmb/blob/main/posts/test.mdx?plain=1)
然后访问vercel.com/new, 导入项目 https://github.com/briteming/cnmb/,点击deploy按钮,等待部署完成,部署完成后,我得到网址https://cnmb.vercel.app 。
新建源帖后,博客网站2分钟内就会更新。
这类基于nextjs的静态博客程序都不能直接支持发表图文并茂的文章。所以我发表图文并茂的‘扬州’文章都失败了。
项目地址:
https://github.com/ChangoMan/nextjs-mdx-blog
https://github.com/briteming/cnmb/
演示网站: https://cnmb.vercel.app
此程序跟next-blog( https://briteming.blogspot.com/2025/11/nextjsnext-blog.html)如出一辙。
相关帖子: https://briteming.blogspot.com/2025/11/nextjsnext-blog.html
No comments:
Post a Comment