Total Pageviews

Sunday, 23 August 2026

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


首先fork此项目:https://github.com/RyukyuInteractive/blog-2023-12-19,我fork后,得到的项目地址是https://github.com/briteming/mbt,

访问https://github.com/briteming/mbt/tree/main/posts,在这里,新建源帖fh.md,内容为:

---
title: "战马"
excerpt: "点击标题看全文"
coverImage: "/blog/dynamic-routing/cover.jpg"
date: "2026-05-25T08:11:00.322Z"
author:
  name: ym
  picture: "/blog/authors/jj.jpeg"
ogImage:
  url: "/blog/dynamic-routing/cover.jpg"
---

此处写正文或html codes.

( 详见https://github.com/briteming/mbt/blob/main/posts/fh.md?plain=1) 

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

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

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

https://mbt-gold.vercel.app/

项目地址:
https://github.com/RyukyuInteractive/blog-2023-12-19
https://github.com/briteming/mbt

演示博客:

 https://mbt-gold.vercel.app/

 https://mbt-gold.vercel.app/posts/fh 不能显示视频

 

No comments:

Post a Comment