HTML Build a Blog with Jekyll and GitHub Pages Building and Customizing the Blog Adding Pagination

Lisa Ling
Lisa Ling
148 Points

`jekyll-paginate` gem

When I run jekyll serve, I got the following problem,

Deprecation: You appear to have pagination turned on, but you haven't included the jekyll-paginate gem. Ensure you have gems: [jekyll-paginate] in your configuration file.

Would you give me some suggestion? Thank you!

Jeffrey Vierra
Jeffrey Vierra
21,095 Points

Did you get this issue resolved? I'm going through the exact same problem. I was about to do some google foo for the answer. But I decided to look here first.

8 Answers

Lisa Ling
Lisa Ling
148 Points

I solved it! We need to paste the following to config.yml and update config.yml.

PAGINATION

  • gems: [jekyll-paginate]
  • paginate: 5
  • paginate_path: "page:num"
Thomas Vaeth
Thomas Vaeth
14,820 Points

I just had this problem too. In my _config.yml I just pasted this:

# Gems
gems: [jekyll-paginate]
Joe Pichardo
Joe Pichardo
5,550 Points

Found this on the web

In Jekyll 3, pagination is deprecated. This post describes how to resolve the error: “Deprecation: You appear to have pagination turned on, but you haven’t included the jekyll-paginate gem. Ensure you have gems: [jekyll-paginate] in your configuration file.”

First, make sure you have the gem installed by typing in your terminal: gem install jekyll-paginate (or sudo gem install jekyll-paginate)

Next, open _config.yml, add add the following line:

gems :

  • jekyll-paginate

Now, when you run jekyll serve or jekyll build the should no longer be there.

Elena Paraschiv
Elena Paraschiv
9,937 Points

Thanks this explanation was the only one that worked for me

Ben Low
Ben Low
2,752 Points

Thanks for your answer. Just rang into this problem and you answer had the right background to give me an understanding as to why this problem exists!

Diwesh Saxena
Diwesh Saxena
14,165 Points

Just to update now we have to explicitly also include its dependency "jekyll-gist" . So it should now look like

gems: [jekyll-paginate, jekyll-gist]

gem install jekyll-paginate

and add to _config.yml

gems: [jekyll-paginate]
paginate: 3
Sally Gradle
Sally Gradle
23,285 Points

This was so helpful. Thanks!

thanks for posting saved me bit of time :-)

Y'all saved me because I was going crazy rewatching the video trying to figure out what I was doing wrong..

Treehouse should start putting the links to these Q&A's in the teacher's note.