Total Pageviews

Saturday, 3 January 2026

搭建基于nextjs的静态博客程序nbp(支持分页)


首先fork此项目https://github.com/piotr-jura-udemy/nextjs-blog-portfolio,我fork后的项目地址是https://github.com/ymbrite/nbp

然后访问https://github.com/ymbrite/nbp/tree/main/content,新建源帖fh.mdx,内容为:

---
title: 战马
description: 这是一篇文章
date: "2026-01-03T16:12:00"
tags:
  - misc1
  - misc2
  - misc3
---


此处写视频的嵌入代码

( 详见https://github.com/ymbrite/nbp/blob/main/content/fh.mdx?plain=1)

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

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

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

 项目地址:

https://github.com/piotr-jura-udemy/nextjs-blog-portfolio

https://github.com/ymbrite/nbp

演示博客:

 https://nbp-phi.vercel.app/

https://nbp-phi.vercel.app/blog  (支持分页)

 https://nbp-phi.vercel.app/blog/fh 能显示视频

 

No comments:

Post a Comment