How does one downgrade jekyll to work with github pages?

后端 未结 2 1945
星月不相逢
星月不相逢 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.

    0 讨论(0)
  • 2021-01-02 11:28

    The current version of github pages requires you set use Jekyll 3.8.5 and github-pages 202. When I set this up, I also had to set a specific version for jekyll feed. Here's the relevant lines you need in your Gemfile:

    gem "jekyll", "~> 3.8.5"
    gem "github-pages","~> 202" , group: :jekyll_plugins
    # If you have any plugins, put them here!
    group :jekyll_plugins do
      gem "jekyll-feed", "~> 0.11.0"
    end
    

    After that, try removing your Gemfile.lock and running bundle install.

    I have a repo here with a minimal version set up.

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