使用 github + cloudflare pages 优选制作图床准备工作
一个 Github 账户
一个 Cloudflare 账户
一个域名
一个阿里云账户 (如需优选)
PicGo 软件
1. 创建 Github 仓库创建一个 Github 仓库,用于存放图片。名称随意,可以设为 Private,也可以设为 Public。
2. 获取 Github 令牌访问 Github Token 页面,创建一个 Personal Access Token (Classic),勾选 repo 权限,用于 Picgo 上传图片到 Github。名字随便填
3. 创建 Cloudflare Pages 项目访问 Cloudflare Pages 页面,创建一个 Pages 项目。使用连接到 Git 按钮链接到你的个人储存库
4. 设置自定义域名在上一步的 Pages 项目中,选择自定义域,添加你的二级域名。
5. 设置 PicGo在 PicGo 设置中勾选 GitHub 图床,在图床设置中选择 Default 配置,填写你的仓库名和分支名,以及你的 GitHub Token和自定义域名
6. ...
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment