search

Home  >  Q&A  >  body text

ruby - github上jekyll blog不工作 ?

http://chenge.github.io, index页面显示'Hi'. 但我修改为'Hi 3', 超过了等待时间,却没反应.

数据在: https://github.com/chenge/chenge.github.io,在blog目录下
,本地测试jekyll serve是可以的。

谢谢

PHP中文网PHP中文网2775 days ago885

reply all(4)I'll reply

  • 迷茫

    迷茫2017-04-24 09:11:30

    I took a look and you used jekyll 框架,的话, 上传到 github 不应该用 blog 目录, xxx.github.io 才是替代你的 blog for the existence of the directory. The reason why there is no response is because the path is wrong, and of course it cannot be found.

    reply
    0
  • 迷茫

    迷茫2017-04-24 09:11:30

    1. First of all, chenge.github.io does not need to build a gh-page branch. Projects named according to "username.github.io" are automatically regarded as page pages. gh-page is a fork of page for other projects.
    2. The directory format is incorrect. There is no need to create a new blog folder. The contents of the blog folder should be placed under Chenge.github.io.
    3. The reason why only "Hi" is displayed is because the compilation was successful before, but after changing to "Hi 3", the compilation failed and the compilation failed. The content of the original "Hi" is still in the _site directory, so only the content before modification is displayed. You can check your mailbox to see if there is a compilation failure email sent to you by github.
    4. The reason for local success is probably to run jekyll serve directly in the blog directory... Of course it is possible.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-24 09:11:30

    Change your project name to chenge.github.com so that the code under master will be built by default.
    Or push your blog program to the gh-pages branch of chenge.github.io and it will be built.

    Refer to my blog: https://github.com/panxw/panxw.github.com

    reply
    0
  • 黄舟

    黄舟2017-04-24 09:11:30

    225932282 Q group solves all git github worries

    reply
    0
  • Cancelreply