Total Pageviews

Wednesday, 24 December 2025

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

 

首先fork此项目https://github.com/upmostly/nextjs-mdx-blog,我fork后的项目地址是https://github.com/briteming/unmb, 
然后访问https://github.com/briteming/unmb/tree/main/posts,新建源帖fh.mdx ,
内容为:

---
title: 战马
description: 这是一篇文章
publishedAt: 2025/12/23
---

此处写视频的嵌入代码

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

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

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

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

 项目地址:

https://github.com/upmostly/nextjs-mdx-blog

https://github.com/briteming/unmb

演示博客:

https://unmb.vercel.app/

https://unmb.vercel.app/posts/fh 能显示视频

 同一天里发表的帖子是按字母顺序从上到下排列的,这样即可做到按发表的时间顺序排列:

https://unmb.vercel.app/posts/admonition

https://unmb.vercel.app/posts/ce

https://unmb.vercel.app/posts/fh

相关帖子: 搭建基于nextjs的静态博客程序jntmb



No comments:

Post a Comment