首先fork这个项目https://github.com/zhonger/jekyll-theme-H2O-ac,我fork后,得到的项目地址是https://github.com/briteming/jth
然后在此处 https://github.com/briteming/jth/tree/master/_posts 新建源帖2026-03-21-fh.md ,内容为:
---
layout: post
title: '战马'
date: 2026-03-21T15:21:00
cover: 'https://images.unsplash.com/photo-1653629154302-8687b83825e2'
tags:
- misc1
- misc2
---
此处写正文或html代码
(详见 https://github.com/briteming/jth/blob/master/_posts/2026-03-21-fh.md?plain=1)
然后访问vercel.com/new,导入项目https://github.com/briteming/jth。点击import按钮,
然后在跳到的页面里,输入 Build Command的值:jekyll build
输入 Output Directory的值:_site
然后点击deploy按钮,等待部署完成。如图:
部署完成后,我得到网址https://jth.vercel.app/
项目地址:
https://github.com/zhonger/jekyll-theme-H2O-ac
https://github.com/briteming/jth
博客地址:
https://jth.vercel.app/
https://jth.vercel.app/blog/index.html
我这是第一次 部署Jekyll主题程序到vercel平台。

No comments:
Post a Comment