Total Pageviews

Friday, 12 December 2025

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

 


首先fork此项目https://github.com/zeon-studio/nextplate,我fork后的项目地址是https://github.com/briteming/zsnp , 访问https://github.com/briteming/zsnp/blob/main/package.json ,修改第20,26,47行的值为16.0.10 ,
因为nextjs的旧版 15.0.0-16.0.6被发现有安全漏洞,vercel.com会拒绝为nextjs的旧版 15.0.0-16.0.6进行build.
然后访问https://github.com/briteming/zsnp/tree/main/src/content/blog ,新建源帖fh.md,内容为

---
title: "战马"
meta_title: ""
description: "这是一篇文章"
date: 2025-12-12T14:26:00Z
image: "/images/image-placeholder.png"
categories: ["Application", "Data"]
author: "ym"
tags: ["nextjs", "tailwind"]
draft: false
---

此处写视频的嵌入代码

( 详见https://github.com/briteming/zsnp/blob/main/src/content/blog/fh.md?plain=1)

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

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

 项目地址:

https://github.com/zeon-studio/nextplate

 https://github.com/briteming/zsnp

演示博客:

https://zsnp.vercel.app/

https://zsnp.vercel.app/blog,支持渲染视频. 支持分页

No comments:

Post a Comment