换个hexo主题,报错
但是我一直没有找到.gitmodules 执行命令:
git submodule status
fatal: no submodule mapping found in .gitmodules for path 'themes/next'
修复步骤:
- 删除这个主题
- push到远程分支
- 重新安装
`git submodule add --depth=1 https://github.com/link_to_your_favorite_theme.git themes/theme_name`
`git submodule update --init --recursive`
- 再执行这个代码检查一下(我装了另外一个主题)
应该就没得问题了
但是我又发现了一个新问题:
这个是静待站点构建出问题了 ,确实没有这个nojekyll文件。 文档:docs.github.com/en/pages/ge…
现在解决:
- 新建一个文件nojekyll
New-Item -ItemType file .nojekyll --- windows
touch .nojekyll --- (Linux或macOS)
- 重新执行一遍
hexo clean
hexo generate
hexo deploy
希望对你们有帮助