Total Pageviews

Monday, 29 December 2025

搭建基于nextjs的静态博客程序mmm(支持分页)


首先fork此项目https://github.com/mk965/mengke.me,我fork后的项目地址是https://github.com/ymbrite/mmm, 
访问 https://github.com/ymbrite/mmm/blob/main/package.json,在第7行的next dev的后面加上 --webpack
在第8行的 next build的后面加上 --webpack
把第40行的next的值改为latest
访问 https://github.com/ymbrite/mmm/blob/main/pnpm-lock.yaml, 点击页面的右上角的
"...", 往下拉动弹出的下拉菜单,来到delete file这里,点击 delete file以删除此文件。
然后访问https://github.com/ymbrite/mmm/tree/main/data/blog/202512,新建源帖fh.mdx,内容为:

---
title: '战马'
date: '2025-12-29T15:01:00'
tags: ['Front-End', 'Job', 'Wlb']
draft: false
summary: '这是一篇文章'
images: ['/static/images/blog/202512/Join_Us/Join_Us.webp']
authors: ['default']
---

此处写视频的嵌入代码

( 详见https://github.com/ymbrite/mmm/blob/main/data/blog/202512/fh.mdx?plain=1)

 然后访问vercel.com/new ,导入项目https://github.com/ymbrite/mmm

 然后在vercel.com/new中,设置部署的命令,如下图:


 

然后,点击deploy按钮,等待部署完成,部署完成后,我得到网址https://mmm-nine-phi.vercel.app/

 新建源帖后,博客网站2-3分钟内就会更新。

 项目地址:

https://github.com/mk965/mengke.me/

 https://github.com/mk965/mengke.me/issues/21

https://github.com/ymbrite/mmm

演示博客:

 https://mmm-nine-phi.vercel.app/

 https://mmm-nine-phi.vercel.app/blog/  支持分页

 https://mmm-nine-phi.vercel.app/blog/202512/fh 不能显示视频,暂未找到解决办法。


No comments:

Post a Comment