# How to add page numbers

**URL:** https://talk.jekyllrb.com/t/how-to-add-page-numbers/626
**Category:** Help
**Created:** [June 8, 2017, 7:34am UTC](https://talk.jekyllrb.com/t/how-to-add-page-numbers/626 "2017-06-08T07:34:32Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![yashumittal](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/yashumittal/32/1260_2.png) [@yashumittal](https://talk.jekyllrb.com/u/yashumittal)
#### Post date: [June 8, 2017, 7:34am UTC](https://talk.jekyllrb.com/t/how-to-add-page-numbers/626/1 "2017-06-08T07:34:32Z")

</div>

It is not possible to show all the blog posts on the single web page, so we need a button to switch between pages.

So, can we add similar features

**For example in**  
Page 1, 1-10 blog post will show  
Page 2, 10-20 blog post will show

---

<div class="post-metadata">

### Author: ![mmistakes](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/mmistakes/32/2169_2.png) [@mmistakes](https://talk.jekyllrb.com/u/mmistakes)
#### Post date: [June 8, 2017, 1:53pm UTC](https://talk.jekyllrb.com/t/how-to-add-page-numbers/626/2 "2017-06-08T13:53:12Z")

</div>

You’ll want to use Jekyll’s [pagination feature](http://jekyllrb.com/docs/pagination/) for this. It’s fairly limited so if you need to do anything more advanced something like [Jekyll Paginate v2 plugin](https://github.com/sverrirs/jekyll-paginate-v2) might work for you instead.

---

<div class="post-metadata">

### Author: ![yashumittal](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/yashumittal/32/1260_2.png) [@yashumittal](https://talk.jekyllrb.com/u/yashumittal)
#### Post date: [June 10, 2017, 11:23am UTC](https://talk.jekyllrb.com/t/how-to-add-page-numbers/626/3 "2017-06-10T11:23:09Z")

</div>

This error pops up in command prompt:  
 ![](https://canada1.discourse-cdn.com/flex030/uploads/jekyllrb/original/1X/a3af725d513fdf722dec60df379da5a78625f957.png)

---

<div class="post-metadata">

### Author: ![mmistakes](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/mmistakes/32/2169_2.png) [@mmistakes](https://talk.jekyllrb.com/u/mmistakes)
#### Post date: [June 11, 2017, 4:20am UTC](https://talk.jekyllrb.com/t/how-to-add-page-numbers/626/4 "2017-06-11T04:20:55Z")

</div>

`gem install jekyll-paginate` or add it to your `Gemfile`

> **[Pagination](https://jekyllrb.com/docs/pagination/)**
>
> With many websites — especially blogs — it’s very common to break the main listing of posts up into smaller lists and display them over multiple pages. Jekyll offers a pagination plugin, so you can automatically generate the appropriate files and...
