How does one downgrade jekyll to work with github pages?

后端 未结 2 1969
星月不相逢
星月不相逢 2021-01-02 10:42

I think my main issue is that jekyll 4 is not support by github pages. That is fine with me, but how do I downgrade jekyll to work regardless?

I tried following the

2条回答
  •  忘掉有多难
    2021-01-02 11:20

    Your Gemfile should look like :

    source 'https://rubygems.org'
    
    # will install all gh-pages allowed gems
    # see : https://pages.github.com/versions/
    gem 'github-pages'
    
    # comment out all other gems
    # gem 'jekyll'
    # gem 'jekyll-feed'
    # gem ...
    

    Remove Gemfile.lock

    You can now do a bundle and it will install all needed gems to test against actual github-pages version.

提交回复
热议问题