Deploy Hexo with Cloudflare Pages

0x01 Create Github repos

Create a repo for storing Hexo files

Create an empty repo named blog-deploy.

0x02 Get and modify Hexo code

Get Hexo code and push

1
2
3
4
5
$ git clone https://github.com/hexojs/hexo-starter blog-deploy
$ cd blog-deploy
$ git remote remove origin
$ git remote add origin https://github.com/yourname/blog-deploy.git
$ git push -u origin master

0x03 Create a new Cloudflare Pages and connect your repo

Create a new Cloudflare Page

Connect it to your blog-deploy repo.

Set Framework preset to Hexo and finish.

Wait the build finish and open your new blog.