github blog安装主题时不成功


图片描述

如图,怎么解决??

The submodule 'blog/themes/alex' was not properly initialized with '.gitmodules' file.

hexo git blog

-ppdayo 9 years, 8 months ago

答案很显然了吧。alex这个子模块无法初始化。估计是有错误,请看 日志 !!!

后面附带文章链接中已给出解决方案:

We strongly recommend running Jekyll locally so you can easily debug and fix build errors before pushing to GitHub.

发布到github之前,最好在本地跑起来,到浏览器中预览下(具体命令查看jekyll或hexo的文档),
如果有问题的话,会在Console或者Terminal中有显示。

一定注意 看输出 Warning Error

希望对您有帮助,谢谢!

kimhung answered 9 years, 8 months ago

我的解决方法:

  1. 按照username.github.io的格式创建一个仓库
  2. 在仓库的设置里选择automatic page generator
    通过这个会自动化git blog页面设置
    然后也能跑起来了 不过目前仅仅是一个单页面的博客
    automatic page generator
  3. 安装hexo 选择自己喜欢的主题来进行安装
    参考 如何搭建一个独立博客——简明Github Pages与Hexo教程
  4. 相关博客配置参考 hexo博客的配置、使用
ashero answered 9 years, 8 months ago

Your Answer