if you have current page at 50, total pages at 100 it should look like
1 2 ... 40 ... 49 50 51 52 ... 60 ... 100
=> make a function smart enough to extract that sequence out ouf [1..100] as it currently is.
---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/26770462-make-smart-function-for-constructing-pages-for-pagination?utm_campaign=plugin&utm_content=tracker%2F13273168&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F13273168&utm_medium=issues&utm_source=github).