解决hexo deploy后Custom domain被重置的问题
前言
我的Blog搭建在GitHub Page上,一开始使用的是Github分配的github.io域名,一次偶然,在itdog上测了下http,有点惨不忍睹,便搜了些教程,挂上了cdn。
起因
几天前,我更新了一下文章,过了一会儿,与我交换友链的朋友叫我修一下Blog,我打开一看
好家伙,怎么回事,打开GitHub的setting才发现原来是Custom domain被清除了。
解决方法
- 先在Github配置正确的Custom domain

- 在hexo的source目录下创建名为
CNAME的文件,写入Custom domain
- 重新进行hexo三连
hexo clean && hexo g && hexo d - 打开博客,没有问题,再检查一下Github,也是正常的,没有被重置
这样完成后自定义域名便不会被重置。
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.

![[折腾笔记]RAX3000QY刷入Uboot和ImmortalWrt](https://pic.lie-kong.top/pic/6854cb68d2ba3/0c4805be29d9da48fcfebae1c067609b.webp)
![[折腾笔记]RAX3000QY开启SSH](https://pic.lie-kong.top/pic/6854da89cfd22/4ed1115e44eb68d7694b46a6a95dc30c.webp)
