Total Pageviews

Wednesday, 7 January 2026

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


首先fork此项目https://github.com/qushay007/nextjs-tailwind-simple-blog,我fork后的项目地址是https://github.com/ymbrite/ntsb

然后访问https://github.com/ymbrite/ntsb/tree/main/posts,新建源帖fh.md,内容为:
---
title: "战马"
date: "2026-01-07T07:45:00"
tags: ["markdown", "code", "features"]
desc: "这是一个视频"
---

 
此处写视频的嵌入代码

( 详见https://github.com/ymbrite/ntsb/blob/main/posts/fh.md?plain=1)
 然后访问vercel.com/new ,导入项目https://github.com/ymbrite/gkb,( 点击import按钮后,

在跳转到的页面里,要输入环境变量NODE_OPTIONS ,其值为 --openssl-legacy-provider 。

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

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

 项目地址:

https://github.com/qushay007/nextjs-tailwind-simple-blog
https://github.com/ymbrite/ntsb

演示博客:

https://ntsb.vercel.app/blog

 https://ntsb.vercel.app/blog/fh  能显示视频

No comments:

Post a Comment