Relative page index

The pagination plugin allows me to show just 5 blog items per page. But now I’ve reached the point of having 10 pages in the index at the bottom of my blog overview.

I had to set the blog items per page to 8, so that I would stay below 10 page indexes. Because when listing < 1 .. 10 > at the bottom of the page, the mobile view becomes affected and doesn’t scale well anymore.

Is there a way to force a max of 8 indexes at the bottom? And then when having 10 indexes in total, it just becomes a relative index of e.g. < 3 .. 8 >. I hope this makes sense. For now I haven’t figured out how I can create a relative page index at the bottom.

@AquaL1te, Have you tried searching the forum using eg. pagination overflow?

1 Like

@AquaL1te, Also, have you tried the README of the Pagination plugin? Especially the Config Defaults section about ‘delta’?

The ‘delta’ value controls how many pages left and right of the current page are visible. If set to 0 all pages will be shown.

Using delta: 2 will yield:

1 Like