# Cannot disable pagination in terms page, even after removing .Paginator

**URL:** <https://discourse.gohugo.io/t/cannot-disable-pagination-in-terms-page-even-after-removing-paginator/25862>\
**Category:** support\
**Tags:** pagination\
**Created:** [May 27, 2020, 12:05pm UTC](https://discourse.gohugo.io/t/cannot-disable-pagination-in-terms-page-even-after-removing-paginator/25862 "2020-05-27T12:05:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rise](https://avatars.discourse-cdn.com/v4/letter/r/958977/32.png) [@Rise](https://discourse.gohugo.io/u/Rise)\
**Post date:** [May 27, 2020, 12:05pm UTC](https://discourse.gohugo.io/t/cannot-disable-pagination-in-terms-page-even-after-removing-paginator/25862/1 "2020-05-27T12:05:37Z")

</div>

I want to disable paginations on terms page. So in `terms.html`, I changed `{{ range .Paginator.Pages }}` to `{{ range .Pages }}`.

And here is what i wrote on Pagination.

```html
{{ if .Paginator }}
        {{ if gt .Paginator.TotalPages 1 }}
        ......
        {{ end }}
{{ end }}

```

But Hugo still generates pagination. The pagination keep existing, and I can even access `http://localhost:1313/categories/page/2/`.

I’ve searched some articles on this. However, I still can’t solve this question. In this [post](https://discourse.gohugo.io/t/prevent-pagination-from-being-created/2432/2), bep said,

> Those pages only gets generated if you reference the `Paginator` in a template. So don’t and you should be home free.

But there isn’t anything related to pagination in `terms.html`. Pagination still exists.

There is another case, just like what i’ve said, in this post: [Turn off pagination - #3 by BYVoid](https://discourse.gohugo.io/t/turn-off-pagination/9961/3)

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [May 27, 2020, 5:14pm UTC](https://discourse.gohugo.io/t/cannot-disable-pagination-in-terms-page-even-after-removing-paginator/25862/2 "2020-05-27T17:14:20Z")

</div>

Please provide a link to a public repository for your site.

> [@Requesting Help](https://discourse.gohugo.io/t/requesting-help/9132):
>
> Please read and follow the below guidelines before asking for help in the forum. [DOCS](https://gohugo.io/documentation/) | [THEMES](https://themes.gohugo.io/) | [NEWS](https://gohugo.io/news/) | [GITHUB](https://github.com/gohugoio/hugo) | [FAQ](https://gohugo.io/troubleshooting/faq/) | [RELEASE NOTES](https://github.com/gohugoio/hugo/releases)How to Request Help Welcome to the Hugo forums and thanks for using Hugo! The below are a few friendly tips on getting help from the other Hugo volunteers in this forum. Some Knowledge Required Dare we say that while Hugo is indeed pretty magical, it is not meant to be a “magic wand” to suddenly give you a published website a la Square Space or Wordpress. You …

---

<div class="post-metadata">

**Author:** ![Rise](https://avatars.discourse-cdn.com/v4/letter/r/958977/32.png) [@Rise](https://discourse.gohugo.io/u/Rise)\
**Post date:** [June 3, 2020, 9:10am UTC](https://discourse.gohugo.io/t/cannot-disable-pagination-in-terms-page-even-after-removing-paginator/25862/3 "2020-06-03T09:10:36Z")

</div>

Thanks for your reply.

I’ve put them in a branch `taxonomy`: [https://github.com/AmazingRise/hugo-theme-diary/tree/taxonomy/](https://github.com/AmazingRise/hugo-theme-diary/tree/taxonomy/)

This is the related page `terms.html`:

> <https://github.com/AmazingRise/hugo-theme-diary/blob/taxonomy/layouts/_default/terms.html#L16>

And here are the paginator of PC view:

> <https://github.com/AmazingRise/hugo-theme-diary/blob/e4ee26040d4bbc9d50a55f99d9a13ab3bb04d5a6/layouts/partials/extrabar.html#L27>

, and also mobile view:

> <https://github.com/AmazingRise/hugo-theme-diary/blob/e4ee26040d4bbc9d50a55f99d9a13ab3bb04d5a6/layouts/partials/mobile-paginator.html#L1>
