访问https://github.com/brightmann/daymd/tree/main/content/posts,在此处新建源帖(即add
file),我新建了源帖https://github.com/brightmann/daymd/blob/main/content/posts/2026-06-06-fh/index.mdx?plain=1,内容为:
---
title: 战马
excerpt: 这是一篇文章
date: 2026-06-06 21:30:00
backpic: url(https://jetzihan-img.oss-cn-beijing.aliyuncs.com/blog/20220831154801.png)
---
此处写正文或html codes.
然后,访问vercel.com/new ,导入项目https://github.com/brightmann/daymd
Build Command栏填入npm run build
Install Command栏填入npm install
然后点击底部的deploy按钮,等待部署完成。部署完成后,我得到网址:
https://daymd-azure.vercel.app/
项目地址:
https://github.com/inannan423/Daymd
https://github.com/brightmann/daymd
演示博客:
https://daymd-azure.vercel.app/
https://daymd-azure.vercel.app/posts/06-06-fh 能显示视频。
帖子是按数字(从小到大)+字母顺序,从上到下排列的。(源帖里,date那行,即使写了几点几分几秒没什么用,等于没写一样。帖子并不会按发表的时间顺序排列)
No comments:
Post a Comment