Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compatibility issue with paginate V2 introduced by #2378 #2381

Merged
merged 1 commit into from
Jan 25, 2020

Conversation

iBug
Copy link
Collaborator

@iBug iBug commented Jan 25, 2020

This is a bug fix.

Summary

The patches in #2378 introduced a huge issue when paginating collections with paginate V2 plugin, the users of which generally set site.paginate to false or omit it completely to let it default to null. This however made all collection indices paged with site.posts instead of paginator.posts.

Tested with Jekyll 3.8.6 and latest compatible jekyll-paginate-v2, the paginator object is available for properly-configured pages, so this change doesn't break the intended functionality of #2378, while fixes the new issue effectively.

@mmistakes mmistakes merged commit 82a71a5 into mmistakes:master Jan 25, 2020
@iBug iBug deleted the fix-2378 branch January 25, 2020 16:20
jesuswasrasta pushed a commit to jesuswasrasta/jesuswasrasta.github.io that referenced this pull request Jul 8, 2020
mzaffran pushed a commit to mzaffran/mzaffran.github.io that referenced this pull request Jan 4, 2021
kaitokikuchi pushed a commit to kaitokikuchi/kaitokikuchi.github.io that referenced this pull request Sep 4, 2023
chukycheese pushed a commit to chukycheese/chukycheese.github.io that referenced this pull request Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants