将Vitepress/Hexo 部署到 Cloudflare Pages
准备
- 一个 Cloudflare 账户
- 一个 Github 账户
- 一个域名(可以去nic.us.kg 白嫖)
- 一个脑子
- 一双手
初始化 Github 仓库
可以选择私有,也可以是公开
打开Github.com,登录
选择Create New(可以点击URL)
名字自己随便写,Init README 可以选
接下来打开仓库,记住仓库 url
打开Powershell/Bash 命令行(注意:要先安装 Git)
输入
git clone <仓库 URL>开加速器容易出现SSL 问题,可以通过
git config http.sslVerify false关闭SSL 验证,也可以把URL 改成https://fastgithub.starryfun.icu/<原 url 链接>接下来安装