首先fork此项目https://github.com/vntechies/blog,我fork后,得到的项目地址是https://github.com/briteming/vtb
访问https://github.com/briteming/vtb/tree/main/data/blog/solutions ,在此处新建源帖(即add file),我新建了源帖fh.mdx,内容为:
---
title: 战马
date: '2026-05-27 12:00:00'
tags: ['misc1', 'misc2', 'misc3']
draft: false
images: ['/static/images/ogps/jamstack.png']
layout: PostSimple
authors: ['mau']
summary: '这是一篇文章'
---
此处写正文或html codes.
( 详见https://github.com/briteming/vtb/blob/main/data/blog/solutions/fh.mdx?plain=1)
然后,访问vercel.com/new ,导入项目https://github.com/briteming/vtb,
Build Command栏填入npm run build
Install Command栏填入npm install
然后点击底部的deploy按钮,等待部署完成。部署完成后,我得到网址:
https://vtb-nu.vercel.app/
项目地址:
https://github.com/vntechies/blog
https://github.com/briteming/vtb
演示博客:
https://vtb-nu.vercel.app/blog,支持分页。https://vtb-nu.vercel.app/blog/solutions/fh 能显示视频
No comments:
Post a Comment