Jekyll-paginate-v2 not work with Jekyll v4

Dependency Error:

Yikes! It looks like you don’t have jekyll-paginate-v2 or one of its dependencies installed. In order to use Jekyll as currently configured, you’ll need to install this gem. If you’ve run Jekyll with bundle exec, ensure that you have included the jekyll-paginate-v2 gem in your Gemfile as well. The full error message from Ruby is: ‘Unable to activate jekyll-paginate-v2-2.0.0, because jekyll-4.0.0 conflicts with jekyll (~> 3.0)’ If you run into trouble, you can find helpful resources at!


1 Like

The support has been added but there hasn’t been a release. So edit your Gemfile to:

gem 'jekyll-paginate-v2', github: 'sverrirs/jekyll-paginate-v2'

I do not use gemfile.
Can i install differently?

example: "sudo gem i 'jekyll-paginate-v2', github: 'sverrirs/jekyll-paginate-v2"

1 Like

To install the gem from GitHub without a Gemfile, you’ll have to manually build the gem from the repository yourselves and install that:

  1. Clone the repository locally and move into the directory:
    git clone
    cd jekyll-paginate-v2
  2. Bump version in lib/jeyll-paginate-v2/version.rb
  3. Build the gem
    gem build jekyll-paginate-v2.gemspec
  4. Install the gem you just built:
    gem install jekyll-paginate-v2 --local

Thank you very much!:+1:


Auto pages not working in jekyll 4

1 Like

Until the plugin is updated, try my fork by adding this to your Gemfile

gem 'jekyll-paginate-v2', github: 'mmistakes/jekyll-paginate-v2', :branch => 'jekyll-v4'

I had roll it back to a working version, then relaxed the Gemspec to allow for Jekyll v4.

Here’s the issue on GitHub if you want to track it:

1 Like

It works, but next post prev post link not working, in next and prev page showing home page, not sjowing any post.

Next/previous links on a post is something different I believe. It’s not part of the paginator object, which is used when you have a “list of posts”… not a single post. Instead of paginator.previous and you use page.previous and

Something like this would go on your single post layout to page between the post before and after the current one:

{% if page.previous or %}
  <nav class="pagination">
    {% if page.previous %}
      <a href="{{ page.previous.url | relative_url }}">Previous</a>
    {% endif %}
    {% if %}
      <a href="{{ | relative_url }}">Next</a>
    {% endif %}
{% endif %}