Total Pageviews

Friday, 26 December 2025

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


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

---
date: '2025-12-21T21:55:00'
thumbnail: /assets/600x400.svg
coverImage: /assets/1920x1080.svg
title: 战马
description: 这是一篇文章
tags: ['Git', 'Gist', 'Lorem Ipsum']
author: ym
---


此处写视频的嵌入代码

( 详见https://github.com/briteming/mtns/blob/main/_posts/fh.mdx?plain=1),像这种date参数的值为

 2025-12-21T21:55:00的静态博客程序的帖子通常就是按发表的时间顺序排列的,无需去管源帖怎么命名。

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

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

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

 项目地址:

https://github.com/squashfold/mdx-ts-nextjs-starter

https://github.com/briteming/mtns

演示博客:

https://mtns.vercel.app/

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

No comments:

Post a Comment