首先fork此项目:https://github.com/Magren0321/nerukigat,我fork后,得到的项目地址是https://github.com/brightmann/mn
访问https://github.com/brightmann/mn/tree/main/posts,在此处新建源帖(即add file),我新建了源帖fh.mdx,内容为:
---
title: 战马
tags:
- misc1
- misc2
- misc3
slug: fh
date: 2026/06/18
description: 这是一篇文章
---
此处写正文或html codes.
( 详见https://github.com/brightmann/mn/blob/main/posts/fh.mdx?plain=1)
然后,访问vercel.com/new ,导入项目https://github.com/brightmann/mn
Build Command栏填入pnpm build
Install Command栏填入pnpm install
然后点击底部的deploy按钮,等待部署完成。部署完成后,我得到网址:
https://mn-sandy.vercel.app/
项目地址:
https://github.com/Magren0321/nerukigat
https://github.com/brightmann/mn
演示博客:
https://mn-sandy.vercel.app/posts/fh 能显示视频
https://mn-sandy.vercel.app/posts,支持分页(不过这种分页不是真正的分页。不过仍然好过那种一直往下拉的单页面博客程序)
No comments:
Post a Comment