hexo: Deploy github and lose CNAME
Issue
I deployed my hexo blog to github pages, but I lost the custom domain in github pages.
I tried to re-add the custom domain in the repository settings and I found this operation will add CNAME file under the repository root directory.
Solution
So I copy this file(or create a new one and only put custom domain into this file) to the source
directory of my hexo blog, and then commit and push it to the repository.
Everything works fine!
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 TroyMitchell's blog!