标签 Github 下的文章

域名侧

在域名配置中,设置一个域名(xx.yourdomain.com)CNAME指向yourname.github.io

Hexo侧

在source目录下新建一个文件,名称为CNAME
在CNAME中只写上之前设置的域名xx.yourdomain.com
执行命令:

Hexo g
Hexo d

验证

在浏览器中输入你的域名,显示github上的博客。