Total Pageviews

Monday, 13 July 2026

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


首先fork此项目https://github.com/Rose-stack/static-nextjs-blog-with-typescript-mdx-tailwindcss,我fork后,得到的项目地址是https://github.com/brightmann/snbtmt

访问https://github.com/brightmann/snbtmt/tree/main/_posts,在此处新建源帖(即add file),我新建了源帖fh.mdx,内容为:

---
date: '2026-06-07 16:05:00'
thumbnail: /assets/getting-started.jpeg
title: 战马
description: 这是一篇文章
---

此处写正文或html codes.

( 详见https://github.com/brightmann/snbtmt/blob/main/_posts/fh.mdx?plain=1) 

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

  Build Command栏填入npm run build

 Install Command栏填入npm install

然后点击底部的deploy按钮,等待部署完成。部署完成后,我得到网址:

https://snbtmt.vercel.app/

项目地址:

https://github.com/Rose-stack/static-nextjs-blog-with-typescript-mdx-tailwindcss

https://github.com/brightmann/snbtmt

演示博客:

 https://snbtmt.vercel.app/

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

越新的帖子,越排在网页的下面。 

No comments:

Post a Comment