GitHub pages are not updating

后端 未结 30 2295
[愿得一人]
[愿得一人] 2020-12-04 15:22

I\'m running into a weird issue with GitHub pages. I pushed a new commit to my personal pages page maltzj.github.io, but the new article isn\'t showing up there. When I exec

相关标签:
30条回答
  • 2020-12-04 15:31

    In my case it was incorrect kramdown syntax. My code was

      {% highlight %}
      lorem lipsum
     {% endhighlight %}
    

    Apparently you must tell kramdown the language:

      {% highlight html %}
      lorem lipsum
     {% endhighlight %}
    
    0 讨论(0)
  • 2020-12-04 15:32

    I had an unclosed <a> tag which caused the build to be pending forever. Fixing that solved the issue.

    It makes sense that GitHub would verify your links.

    0 讨论(0)
  • 2020-12-04 15:33

    To my mind, GitHub pages is late from one commit. This means if you want it to refresh, add any modification to your source, commit, and push.

    This behavior only applies for the gh-pages branch and the any.github.io repository. In the "docs" folder, the modifications apply directly.

    0 讨论(0)
  • 2020-12-04 15:36

    Oddly (and simply) enough I created a new branch, made that branch the "default" branch and pushed from there.

    This worked for me.

    0 讨论(0)
  • 2020-12-04 15:37

    In my case, none of above solutions works. Finally I find out the reason is: there is "relative_permalinks" option in my _config.yml. This option is recently deprecated in Jekyll 3.0.

    Refer to: https://help.github.com/articles/removing-relative-permalinks/

    0 讨论(0)
  • 2020-12-04 15:37

    Check your build status of gh-pages in settings tab.

    Your site is having problems building: Unable to build page.

    If you are using github_token, it might not have permission to build the gh-pages so you might see a warning in the settings tab. That's why editing index.html might work. In this case use access_token or ssh based commit to automatically push and build gh-pages.

    0 讨论(0)
提交回复
热议问题