0%

Hexo

Hexo

How to change the blog domain adr

1. Buy new domain name

在阿里云买个新域名
aliyundns_config

点击解析,然后添加如下两条纪录,其中记录值是你的用户名.github.io。然后就解析完成了

aliyundns_config

2. config the domain in ur hexo project

1. Modify the _config.yml

打开hexo目录下的_config.yml文件,找到URL,将其指向域名地址,我的是:

1
https://gracekoo.com

2. Modify the CNAME

打开hexo/source目录下的CNAME文件(如果没有请新建,无后缀)

在其中写入你的域名地址即可

3. Config ur GitHub project

githubio_config

Deploy ur project

1
2
3
>> hexo clean
>> hexo g
>> hexo depoly

4. Others

如果你的网站不能正常显示,请检查对应github里的仓库设置,google
“github pages 404怎么解决”

如果本地重试username.github.io都是好的。最重要的,清除缓存后再重试下