Paginate Only For Current Sections

Dear All

I have some folder sections:

I use this on my list.html layout:

{{ range (.Paginate (.Pages).Reverse).Pages }}

But in the end of single pages always continue to pages from another section like this:
Next >>
Next >>
Next >>

I want in the end of every single pages are stop per section. So when I click next pages from /blog/title14 it just stop there without continue to pages from another sections.

Is there a way how to fix it?


Please post a link to the public repository for your project.


Let us see your code

Include a link to the source code repository of your project, because we really need the context of seeing your templates and partials to be able to help you. It is trivial to do a quick git clone on your repo, then run hugo server in your project, to help you out. On the other hand, recreating your code from screenshots, or sort of guessing at it, is not.

If you can’t share your repository for whatever reason, consider creating a dummy repo that you can share, which reproduces the problem you’re experiencing.