Total Pageviews

Thursday, 13 August 2026

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


首先fork此项目:https://github.com/dahliaOS/blog,我fork后,得到的项目地址是

https://github.com/brightmann/dob
访问https://github.com/brightmann/dob/tree/main/pages/posts,在这里,新建帖子fh.mdx,内容为:

---
title: 战马
description: 这是一篇文章
date: 2026-06-23 07:13:00
tag: [misc]
author: ym
image: "https://blog.dahliaos.io/api/og?title=We have a blog!&desc=Today marks the day we made our first post on the dahliaOS blog! Stay tuned, more is yet to come!&date=2022-07-23"
---

此处写正文或html codes.

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

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

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

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

https://dob-livid.vercel.app

项目地址:
https://github.com/dahliaOS/blog
https://github.com/brightmann/dob

演示博客:

 https://dob-livid.vercel.app

 https://dob-livid.vercel.app/posts
https://dob-livid.vercel.app/posts/fh 能显示视频

No comments:

Post a Comment