hexo部署问题

使用hexo d 命令部署之后 访问页面不显示

原因

因为之前看的网上教程,在_config.yml文件中设置的

1
2
3
4
deploy:
type: git
repository:
branch: master

中将branch 设置为了 master,这是因为github现在新建仓库的主分支为main github/renaming: Guidance for changing the default branch name for GitHub repositories

所以现在github pages 调用的分支为maIn分支

解决方法

打开博客仓库的settings

拉到最下面看到github pages配置

然后将分支改为master即可


本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!