Total Pageviews

Monday, 8 December 2025

搭建基于nextjs的静态博客程序stbt(支持分页)


首先fork此项目https://github.com/sub-t/blog-template,我fork后的项目地址是https://github.com/briteming/stbt,
然后访问https://github.com/briteming/stbt/tree/main/_posts,新建源帖test.md,内容为

---
title: '测试'
excerpt: '这是一篇文章'
coverImage: '/assets/blog/dynamic-routing/cover.jpg'
date: '2025-11-29T09:19:00'
ogImage:
  url: '/assets/blog/dynamic-routing/cover.jpg'
tags:
  - 'misc1'
  - 'misc2'
  - 'misc3'
---

这是测试。

看看如何?

( 详见https://github.com/briteming/stbt/blob/main/_posts/test.md?plain=1)

 然后访问vercel.com/new ,导入项目https://github.com/briteming/stbt,点击deploy按钮,等待部署完成,部署完成后,我得到网址https://stbt-moon.vercel.app/

 新建源帖后,博客网站2分钟内就会更新。

 项目地址:

https://github.com/sub-t/blog-template

 https://github.com/briteming/stbt

演示博客:

https://stbt-moon.vercel.app/

https://stbt-moon.vercel.app/posts/page/1/, 支持分页。

stbt是静态博客程序snms(https://briteming.blogspot.com/2025/11/nextjssnms.html)的作者开发的另一个静态博客程序.此程序不能渲染嵌入的视频,比如https://stbt-moon.vercel.app/posts/fh/,所以就只好粘贴视频的链接地址。

 related post: https://briteming.blogspot.com/2025/11/nextjssnms.html

 

No comments:

Post a Comment