Total Pageviews

Monday, 29 December 2025

搭建基于nextjs的静态博客程序lncb


首先fork此项目https://github.com/Insaneninjan/next-custom-blog,我fork后的项目地址是https://github.com/ymbrite/lncb, 

---
title: "战马"
date: "2025-12-28"
---

此处写视频的嵌入代码

( 详见https://github.com/ymbrite/lncb/blob/main/data/fh.md?plain=1)

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

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

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

 项目地址:

https://github.com/Insaneninjan/next-custom-blog

https://github.com/ymbrite/lncb

演示博客:

https://lncb-seven.vercel.app/

https://lncb-seven.vercel.app/posts/fh ,此帖子本来并不显示视频,解决办法:访问

 https://github.com/ymbrite/lncb/blob/main/lib/post.js,修改第46行的.use(html)

 .use(html, { sanitize: false })

 2分钟后,再访问https://lncb-seven.vercel.app/posts/fh,发现能显示视频了。

博客的 帖子是按字母顺序排列:

https://lncb-seven.vercel.app/posts/ce

 https://lncb-seven.vercel.app/posts/fh

 https://lncb-seven.vercel.app/posts/o-test

 https://lncb-seven.vercel.app/posts/prerendering-about

No comments:

Post a Comment