Total Pageviews

Monday, 10 August 2026

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


首先fork此项目:https://github.com/sametcn99/nextui-blog-template,我fork后,得到的项目地址是https://github.com/brightmann/nbt,


访问https://github.com/brightmann/nbt/tree/main/sampleposts,在此处新建源帖(即add file),我新建了源帖fh.md,内容为:

---
title: "战马"
date: 2026-06-15T19:51:00
description: "这是一篇文章"
author: "admin"
---

此处写正文或html codes.

( 详见https://github.com/brightmann/nbt/blob/main/sampleposts/fh.md?plain=1) 

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

  Build Command栏填入npm run build
 Install Command栏填入npm install 

然后点击底部的deploy按钮,等待部署完成。部署完成后,我得到网址:
https://nbt-oaab.vercel.app/

项目地址:
https://github.com/sametcn99/nextui-blog-template
https://github.com/brightmann/nbt

演示博客:

 https://nbt-oaab.vercel.app/

 https://nbt-oaab.vercel.app/posts/fh 不能显示视频

 

No comments:

Post a Comment