Total Pageviews

Tuesday, 14 July 2026

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


首先fork此项目https://github.com/ZL-Asica/SuzuBlog,我fork后,得到的项目地址是https://github.com/brightmann/szb

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

---
title: '战马'
date: '2026-06-07 11:39:00'
categories:
  - 前端
  - 教程
tags:
  - misc1
  - misc2
  - misc3
---

此处写正文或html codes.

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

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

  Build Command栏填入pnpm build

 Install Command栏填入pnpm install

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

https://szb-gules.vercel.app/

项目地址:

https://github.com/ZL-Asica/SuzuBlog

https://github.com/brightmann/szb

https://github.com/brightmann/szb/blob/main/config.yml, 第58/59行可设置每页的帖子数量。

演示博客:

 https://szb-gules.vercel.app/

 https://szb-gules.vercel.app/fh 能显示视频,

https://szb-gules.vercel.app/posts 支持分页

 (https://suzu.zla.app/guide/ )

No comments:

Post a Comment