search

Home  >  Q&A  >  body text

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

如图,怎么解决??

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

给我你的怀抱给我你的怀抱2754 days ago814

reply all(2)I'll reply

  • 世界只因有你

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

    My solution:

    1. Create a repository in the format of username.github.io
    2. Select automatic page generator in the warehouse settings
      Through this, git blog page settings will be automated
      Then it can start running, but currently it is just a single-page blog
    3. Install hexo. Choose your favorite theme to install
      Refer to how to build an independent blog - concise Github Pages and Hexo tutorial
    4. Related blog configuration refer to the configuration and use of hexo blog

    reply
    0
  • 怪我咯

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

    The answer is obvious. The submodule alex cannot be initialized. There is probably an error, please look at the log! ! !

    The solution is given in the article link attached below:

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

    Before publishing to github, it is best to run it locally and preview it in the browser (see the jekyll or hexo documentation for specific commands),
    If there is a problem, it will be displayed in the Console or Terminal.

    Be sure to pay attention to look at the output Warning or Error~

    Hope this helps you, thank you!

    reply
    0
  • Cancelreply