Total Pageviews

Sunday, 21 December 2025

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



首先fork此项目https://github.com/gregrickaby/nextjs-blog,我fork后的项目地址是https://github.com/briteming/gnb, 
然后访问https://github.com/briteming/gnb/tree/main/data/posts,新建源帖fh.mdx,内容为:

---
title: '战马'
date: '2025-12-21T11:22:00'
slug: 'fh'
excerpt: 这是一篇文章
category: misc
---

此处写视频的嵌入代码

( 详见https://github.com/briteming/gnb/blob/main/data/posts/fh.mdx?plain=1)

 然后访问vercel.com/new ,导入项目https://github.com/briteming/gnb。

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

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

 项目地址:

https://github.com/gregrickaby/nextjs-blog

 https://github.com/briteming/gnb

演示博客:

https://gnb-4n6c.vercel.app/  https://gnb-4n6c.vercel.app/articles

 https://gnb-4n6c.vercel.app/article/fh 能显示视频。

( https://gnb.netlify.app/articles

 https://gnb.netlify.app/article/fh)

No comments:

Post a Comment