Heim  >  Fragen und Antworten  >  Hauptteil

hexo - github blog安装主题时不成功

如图,怎么解决??

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

给我你的怀抱给我你的怀抱2697 Tage vor781

Antworte allen(2)Ich werde antworten

  • 世界只因有你

    世界只因有你2017-05-02 09:22:03

    我的解决方法:

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

    Antwort
    0
  • 怪我咯

    怪我咯2017-05-02 09:22:03

    答案很显然了吧。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中有显示。

    一定注意看输出WarningError

    希望对您有帮助,谢谢!

    Antwort
    0
  • StornierenAntwort