Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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
25,404 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"
Jeffrey Vierra
Jeffrey Vierra
25,404 Points

Your a genius! Thank you thank you thank you.

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,938 Points

Thanks this explanation was the only one that worked for me

Ben Low
Ben Low
2,985 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!

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

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.