JIC it might be helpful for those who has a lot of pages within collections, I have provided a gist with my code for configurable “clever” paginator: https://gist.github.com/mudasobwa/7718359
It renders a paginator in the following manner: first N pages, dots linked to the middle of hidden range, N pages around current, dots, last N pages.
Configurable through collection → paginator → borders entry in config.yml:
collection:
…
paginator:
borders: 5
Value sets an amount of pages to make link visible for, e. g. for 3 it will display (assuming we are at 15th index page of 128 total):
JIC it might be helpful for those who has a lot of pages within collections, I have provided a gist with my code for configurable “clever” paginator: https://gist.github.com/mudasobwa/7718359
It renders a paginator in the following manner: first N pages, dots linked to the middle of hidden range, N pages around current, dots, last N pages.
Configurable through
collection → paginator → borders
entry inconfig.yml
:Value sets an amount of pages to make link visible for, e. g. for 3 it will display (assuming we are at 15th index page of 128 total):