Total Pageviews

Saturday, 22 November 2025

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

 

首先fork此项目https://github.com/netlify-templates/nextjs-blog-theme,我fork后的地址是

 https://github.com/briteming/nnbt/, 然后访问

https://github.com/briteming/nnbt/tree/main/posts,新建源帖:
---
type: Post
title: 测试
description: >-
  read more...
date: '2025-11-22T16:08:00'
---

这是测试。

看看如何?

(详见https://github.com/briteming/nnbt/blob/main/posts/test.mdx?plain=1)

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

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

这类基于nextjs的静态博客程序都不能直接支持发表图文并茂的文章。所以我发表图文并茂的‘扬州’文章都失败了。

 项目地址:

https://github.com/netlify-templates/nextjs-blog-theme

 https://github.com/briteming/nnbt/

演示网站: https://nnbt.vercel.app

此程序跟next-blog( https://briteming.blogspot.com/2025/11/nextjsnext-blog.html)如出一辙。

相关帖子: 

https://briteming.blogspot.com/2025/11/nextjsnext-blog.html

 https://briteming.blogspot.com/2025/11/nextjsnext-blog_22.html

 

No comments:

Post a Comment