Total Pageviews

Saturday, 15 August 2026

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


首先fork此项目:https://github.com/hakilee/blog.haklee.me-v1,我fork后,得到的项目地址是https://github.com/brightmann/hbhm ,
访问https://github.com/brightmann/hbhm/tree/master/content/posts,在这里,新建源帖fh.md,内容为:

---
title: 战马
slug: 'fh'
date: '2026-06-20 12:46:00'
template: post
draft: false
category: 'misc'
socialImage: '/images/gatsbyjs-walkthrough/img-saengko-question.png'
tags: ['misc1', 'misc2', 'misc3']
---

此处写正文或html codes.

( 详见https://github.com/brightmann/hbhm/blob/master/content/posts/fh.md?plain=1) 

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

  Build Command栏填入yarn build
 Install Command栏填入yarn

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

https://hbhm.vercel.app/

项目地址:
https://github.com/hakilee/blog.haklee.me-v1
https://github.com/brightmann/hbhm

演示博客:

  https://hbhm.vercel.app/

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

No comments:

Post a Comment