Total Pageviews

Wednesday, 15 July 2026

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


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


访问https://github.com/brightmann/slb/tree/master/public/content/posts,在此处新建源帖(即add file),我新建了源帖https://github.com/brightmann/slb/blob/master/public/content/posts/fh/index.mdoc,内容为:
---
title: 战马
layout: post
status: publish
published_time: 2026-06-06T23:20:00
modified_time: 2026-06-06T23:20:00
categories:
  - 折腾记录
tags:
  - misc1
  - misc2
  - misc3
---

此处写正文或html codes.


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

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

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

项目地址:
https://github.com/syfxlin/blog
https://github.com/brightmann/slb

演示博客:

  https://slb-ten.vercel.app/

 https://slb-ten.vercel.app/post/fh 不能显示视频
https://slb-ten.vercel.app/page/1 支持分页

No comments:

Post a Comment