# \[SOLVED\] Paginate page (.md) filtering by category?

**URL:** <https://talk.jekyllrb.com/t/solved-paginate-page-md-filtering-by-category/372>\
**Category:** Help\
**Created:** [March 30, 2017, 9:58am UTC](https://talk.jekyllrb.com/t/solved-paginate-page-md-filtering-by-category/372 "2017-03-30T09:58:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lsrdg](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/lsrdg/32/431_2.png) [@lsrdg](https://talk.jekyllrb.com/u/lsrdg)\
**Post date:** [March 30, 2017, 9:58am UTC](https://talk.jekyllrb.com/t/solved-paginate-page-md-filtering-by-category/372/1 "2017-03-30T09:58:42Z")

</div>

The official paginate plugins has a bunch of limitations: be used only once, only on index.html, and only for posts. Are any alternatives?

I have two pages for presenting the “2” blogs. Both blogs are just simple posts with different categories.

Blog 1 =\>

- 
  - is a page (`_pages/blog1.md`) with `layout: blog` that makes use of `_layouts/blog.html`, where the posts are filtered by `{% for post in site.categories.categoryOne %}`.

Blog 2 =\>

- 
  - is also a page (`_pages/blog2.md`), but with `layout: page` and right after the front matter, there’s the code to iterate over posts and filter by category (`{% for post in site.categories.categoryTwo %}`.

I would like to paginate both blogs.

Blog1 which is just a normal blog, could use the Jekyll-paginate plugin, but not if it needs to filter categories…

Blog2 would need something else. On the docs, I’ve found a link to [Jekyll-paginate-category](https://github.com/midnightSuyama/jekyll-paginate-category), but I’m not sure works in markdown file, and the documentation was way too short for a noob like me… 😛

Any solution would be appreciated, however, since this problem has grown up organically with the site, I just kept adding layers upon layers, and I might be complicating way more than necessary. Any tips on how to re-approach the case would also be welcome.

---

<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:** [March 30, 2017, 2:01pm UTC](https://talk.jekyllrb.com/t/solved-paginate-page-md-filtering-by-category/372/2 "2017-03-30T14:01:34Z")

</div>

I would look at [jekyll-paginate-v2](https://github.com/sverrirs/jekyll-paginate-v2). It’s feature rich (can paginate categories, tags, collections, etc.) and is actively being developed.

---

<div class="post-metadata">

**Author:** ![lsrdg](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/lsrdg/32/431_2.png) [@lsrdg](https://talk.jekyllrb.com/u/lsrdg)\
**Post date:** [April 2, 2017, 7:00pm UTC](https://talk.jekyllrb.com/t/solved-paginate-page-md-filtering-by-category/372/3 "2017-04-02T19:00:04Z")

</div>

Thanks, @mmistakes! It’s really feature rich! I’ll mark this post as “solved”.

However, there is [an issue](https://github.com/sverrirs/jekyll-paginate-v2/issues/19) with markdown not being rendered. If anybody is following this, just take a look at the link above, the plugin’s creator is really attentive and the issue will soon be solved as well.
