首先fork此项目https://github.com/nathan-abraham/nextjs-blog,我fork后的地址是https://github.com/ymbrite/nanb, 然后访问
https://github.com/ymbrite/nanb/tree/main/posts,新建源帖fh.md ,内容为:
---
title: "战马"
author: "ym"
# profile_photo: '/images/profile_photos/jeff.png'
date: "January 16, 2026 22:08:00"
excerpt: "这是一篇文章"
cover_image: "/images/posts/img3.jpg"
---
此处为视频的嵌入代码
(详见 https://github.com/ymbrite/nanb/blob/main/posts/fh.md?plain=1)
然后访问vercel.com/new, 导入项目https://github.com/ymbrite/nanb,点击deploy按钮,等待部署完成,部署完成后,我得到网址https://nanb-coral.vercel.app
新建源帖后,博客网站2分钟内就会更新。
项目地址:
https://github.com/nathan-abraham/nextjs-blog
https://github.com/ymbrite/nanb
演示博客网站:
https://nanb-coral.vercel.app
https://nanb-coral.vercel.app/posts/fh 能显示视频。
No comments:
Post a Comment