# Restrict pagination to X pages

**URL:** <https://discourse.gohugo.io/t/restrict-pagination-to-x-pages/3437>\
**Category:** support\
**Tags:** pagination\
**Created:** [May 31, 2016, 12:52am UTC](https://discourse.gohugo.io/t/restrict-pagination-to-x-pages/3437 "2016-05-31T00:52:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [May 31, 2016, 7:58am UTC](https://discourse.gohugo.io/t/restrict-pagination-to-x-pages/3437/2 "2016-05-31T07:58:17Z")

</div>

> [@Raymond\_Camden](#):
>
> Any ideas?

You have another refereence to .Paginate or .Paginator somewhere earlier in the template chain. It is static, first wins.

---

_[View the full topic](https://discourse.gohugo.io/t/restrict-pagination-to-x-pages/3437)._
