Total Pageviews

Wednesday, 31 December 2025

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

 

首先fork此项目https://github.com/marpeand/lotse,我fork后的项目地址是https://github.com/ymbrite/lotse, 
访问 https://github.com/ymbrite/lotse/blob/main/pnpm-lock.yaml删除此pnpm-lock.yaml文件
然后访问https://github.com/ymbrite/lotse/tree/main/content/posts,新建源帖fh.mdx,内容为:

---
title: "战马"
date: 2025-12-31T08:11:00
draft: false
---

此处写视频的嵌入代码

( 详见https://github.com/ymbrite/lotse/blob/main/content/posts/fh.mdx?plain=1)

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

然后,点击deploy按钮,等待部署完成,部署完成后,我得到网址https://lotse-tau.vercel.app/

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

 项目地址:

https://github.com/marpeand/lotse

https://github.com/ymbrite/lotse

演示博客:

https://lotse-tau.vercel.app/
https://lotse-tau.vercel.app/,不支持发表180kb的长文。所以我要删除“稀奇古怪的中国经济”的源帖,博客才更新成功。
https://lotse-tau.vercel.app/fh 能显示视频

No comments:

Post a Comment