- 在 GitHub Pages 仓库添加 CNAME 文件并填入将绑定的域名.
例如: zhangbin.net
- 添加域名解析记录 @ 和 www CNAME 至github page链接
例如: www —Cname—> ice5355.github.io
- 进入 GitHub Pages 仓库的 Settings 界面,选择边栏的Pages标签,在“Custom domain”中填入自己的域名,点击 Check 检查解析状态,成功后勾选Enforce HTTPS 开启强制HTTPS。
- 如果用的是hexo博客系统,需要在publish文件夹中添加CNAME 文件,否则会覆盖掉前面的设置。
my-first-blog
Hello World
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 Start
Create a new post
1 | $ hexo new "My New Post" |
More info: Writing
Run server
1 | $ hexo server |
More info: Server
Generate static files
1 | $ hexo generate |
More info: Generating
Deploy to remote sites
1 | $ hexo deploy |
More info: Deployment