It would be super helpful to be able to limit the pagination helper. There is no way to do that since I cannot pass a parameter or attribute.
Currently, I can see that it returns up to 6 pages if the current page is first or last. If the current page is in the middle, then it returns up to 5 pages before and after.
I would like to achieve the results below: