Change pagination segments length

Is there an easy way to change the length of the segments for {{ links:segments }}?

I want to create something like |1| 2 3 4 5 6 . . . 9 10 and 1 2 . . . 6 |7| 8 . . . 12 13 without having to write a bunch of template code.

The default implementation goes up to 10 pages before shortening e.g 1 2 3 4 5 6 7 8 9 10 . . . 15 and when there is the slider that is also longer than I would like.

>>>>>>> Unanswered <<<<<<<
1 Reply
2 Followers