Total Pageviews

Sunday, 9 August 2026

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


首先fork此项目:https://github.com/vadimghedreutan/blog-mdx,我fork后,得到的项目地址是https://github.com/brightmann/vbm,


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

---
title: "往事"
subtitle: "这是一篇文章"
date: "2026-06-11T20:52:00"
---

此处写正文或html codes.

( 详见https://github.com/brightmann/vbm/blob/main/posts/pt.md?plain=1) 

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

  Build Command栏填入pnpm build
 Install Command栏填入pnpm install 

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

项目地址:
https://github.com/vadimghedreutan/blog-mdx
https://github.com/brightmann/vbm

演示博客:

 https://vbm-beta.vercel.app

 https://vbm-beta.vercel.app/posts/pt 能够显示视频

 

No comments:

Post a Comment