Total Pageviews

Saturday, 15 August 2026

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


首先fork此项目:https://github.com/gh640/nextjs-blog-example-ja,我fork后,得到的项目地址是https://github.com/ymbrite/nbej
访问https://github.com/ymbrite/nbej/tree/main/content/posts,在这里,新建源帖fh.md,内容为:

---
title: 战马
published: 2026-05-29 
---

此处写正文或html codes.

( 详见https://github.com/ymbrite/nbej/blob/main/content/posts/fh.md?plain=1) 

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

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

然后点击底部的deploy按钮,等待部署完成。部署完成后,我得到网址:

https://nbej.vercel.app/

项目地址:
https://github.com/gh640/nextjs-blog-example-ja
https://github.com/ymbrite/nbej

演示博客:

https://nbej.vercel.app/,同一天的帖子按字母顺序从下到上排列:

https://nbej.vercel.app/posts/ur-advice

https://nbej.vercel.app/posts/test

https://nbej.vercel.app/posts/fh

https://nbej.vercel.app/posts/ce

https://nbej.vercel.app/posts/fh 能显示视频.

 https://nbej.vercel.app/archive/1 ,支持分页。

  

No comments:

Post a Comment