Total Pageviews

Wednesday, 7 January 2026

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

 

首先fork此项目https://github.com/BolshevikNanven/Nanven-Next-Blog,我fork后的项目地址是https://github.com/ymbrite/nnb

然后访问https://github.com/ymbrite/nnb/tree/main/data/posts/note%24%E9%9A%8F%E7%AC%94%E6%97%A5%E5%B8%B8,新建源帖fh.md,内容为:
---
title: '战马'
description: '这是一篇文章'
image: 'https://drive.nanven.cn/api?path=/blog-images/test.png&raw=true'
date: '2026.01.07 19:50:00'
---

 
此处写视频的嵌入代码

( 详见https://github.com/ymbrite/nnb/blob/main/data/posts/note%24%E9%9A%8F%E7%AC%94%E6%97%A5%E5%B8%B8/fh.md?plain=1 ,上面的image那行不要删除,也不要改动其值
 然后访问vercel.com/new ,导入项目https://github.com/ymbrite/nnb,

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

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

 项目地址:
https://github.com/BolshevikNanven/Nanven-Next-Blog

https://github.com/BolshevikNanven/Nanven-Next-Blog/issues/2
https://github.com/ymbrite/nnb

演示博客:

https://nnb-six.vercel.app/

 https://nnb-six.vercel.app/note/fh  能显示视频

No comments:

Post a Comment