Skip to content

Conversation

@ilyautkin
Copy link

Change the algoritm of shows links to any page in [[+page.nav]]

Change the algoritm of shows links to any page in [[+page.nav]]
@opengeek
Copy link
Owner

@ilyautkin Can you explain what this change does? I'm not following from the code changes or description.

@ilyautkin
Copy link
Author

Now getPage genering such pagination:
27272c366e10cd91d36ee45528e5db18dfd39990
And change makes pagination such:
5393f123477df4626418ce99ae046d81d6ab154f

@sylbal
Copy link

sylbal commented Mar 20, 2017

Hi,

+1 for this, I believe I have the same "issue". From my observations, when you're in the middle of the navigation, the number of page displayed is 'pageLimit' *2 + the active page. The default setup (5) will display up to 11 pages between the first/prev/nex/last links.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants