搭建GitHub博客教程:https://www.cnblogs.com/liuxianan/p/build-blog-website-by-hexo-github.html

为了防止失效,先截个图保存一下

github+hexo搭建博客教程

1、hexo init一直卡住无法继续

1
2
$ hexo init
INFO Cloning hexo-starter https://github.com/hexojs/hexo-starter.git

出现这个问题的主要原因是安装源,可以重置安装源为taobao

1
npm config set registry https://registry.npm.taobao.org

2、本地博客hexo d提交到GitHub后通过username.github.io访问页面空白

GitHub页面默认读的是main分支,所以把分支改为master分支就可。入口为仓库的settings。

image-20201115113744828