Total Pageviews

Saturday, 4 July 2026

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


首先fork此项目https://github.com/DefectingCat/DefectingCat.github.io ,我fork后,得到的项目地址是https://github.com/brightmann/dgi . 删除pnpm-lock.yaml

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

---
title: 战马
date: 2026-07-04 17:04
tags: misc
---

此处写正文或html codes.

( 详见https://github.com/brightmann/dgi/blob/main/content/posts/fh.mdx?plain=1) 

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

  Build Command栏填入npm run build

 Install Command栏填入npm install

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

https://dgi-pi.vercel.app/  

项目地址:

https://github.com/DefectingCat/DefectingCat.github.io

https://github.com/brightmann/dgi

演示博客: 

https://dgi-pi.vercel.app/  支持分页

 https://dgi-pi.vercel.app/post/fh/ 能够显示视频

No comments:

Post a Comment