在域名配置中,设置一个域名(xx.yourdomain.com)CNAME指向yourname.github.io
在source目录下新建一个文件,名称为CNAME。 在CNAME中只写上之前设置的域名xx.yourdomain.com 执行命令:
CNAME
xx.yourdomain.com
Hexo g Hexo d
在浏览器中输入你的域名,显示github上的博客。