-
Notifications
You must be signed in to change notification settings - Fork 87
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
Paginate Collections #3
Comments
Voting yay on this. |
+1 |
+1 pretty please. One of my biggest frustrations with Jekyll would be solved by this. In most cases You can do without pagination but sometimes it would be quite handy (ton of content) |
Thanks for the +1's. How would you envision pagination working? |
+1 for that definitly! |
Vote for it :) |
👍 |
As far as the technical implementation, I don't have a clue but, since pagination should ideally be available in multiple places (posts, collections, categories), I guess you'd have to go beyond the existing paginator variable. Ideally (and this is probably very difficult to implement), I'd like a looping tag pair that you could then use with any array / object (post / collections / categories). Something along the lines of:
|
I agree with @jeromecoupe. Great idea 👍 . Can try to give some help my self but will take time because I am just 2 days old for Jekyll |
Would love to see this. |
👍 I would also love to see this. |
👍 sounds good. |
Happy to look at a PR :) |
Not sure if this is too off-topic, but since I arrived here via Google looking for a solution to collection pagination, I figured I'd post a workaround incase anyone else was in the same boat as me. It is possible to manually paginate using both My code:
And then in a manually created
etc. |
👍 |
+1 for the solution proposed by @jeromecoupe (kudos to @sambaldwin for an easy work-around but I'm 100% in favor of making this a more universal feature) |
👍 |
3 similar comments
👍 |
👍 |
👍 |
@parkr why was this closed? Where's the work on collection pagination, if any, being tracked in future? |
Add me as interested in this as well :) |
And me. |
I also didn't understand why the issue is closed ... |
Because |
Thanks @gynter, please note that the issue was closed a month ago, while that announcement was done 10 hours ago. So it's clear now it, but we can agree it was a weird timeline of communication. |
You can include pagination by including some liquid logic into the layout of your collection. `--- cta: images:
In
The liquid logic in collection-pagination.html is: ` {% for c in site.[this_collection] %} {% if nextflag == 1 %}
This generate two buttons that you can style. The neat part is that if you are at the first item of the collection, the "previous" button will be disabled and hidden. If you are at the last item of a collection, the "next" button will be disabled. I learned about this from: anjesh.github.io/2015/01/25/collection-pagination-working-github-pages/ |
I've been trying to paginate a masonry layout image-board that iterates through every file in an image folder and it feels way more complicated than it should be... I've been using paginate v2 |
@Weevil Paginate v2 is a different project entirely: |
Allow users to paginate collections!
The text was updated successfully, but these errors were encountered: