首先fork此项目https://github.com/guangzhengli/nextjs-blog-template ,我fork后的项目地址是https://github.com/briteming/gnbt
访问 https://github.com/briteming/gnbt/tree/main/src/content/blog,新建源帖test.md, 内容为:
---
title: 测试
date: 2025-11-24T21:34:00+08:00
updated: 2025-11-24T21:34:00+08:00
keywords: ["misc1", "misc2"]
featured: true
summary: "这是一篇文章"
---
这是测试。
看看如何?
然后访问vercel.com/new ,导入项目https://github.com/briteming/gnbt ,点击deploy按钮,等待部署完成,部署完成后,我得到网址https://gnbt.vercel.app/
新建源帖后,博客网站2分钟内就会更新。
这类基于nextjs的静态博客程序都不直接支持发表图文并茂的文章。所以我发表图文并茂的‘扬州’文章都失败了。
项目地址:
https://github.com/guangzhengli/nextjs-blog-template
https://github.com/briteming/gnbt
演示博客: https://gnbt.vercel.app/
No comments:
Post a Comment