Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
A few cases to consider:
Default is no pagination at all.
Then people can add paginations for whatever section they want. We need 3 elements for each pagination:
Example of mixed site+blog content folder:
We can potentially have several type of contents needing pagination, but since I'm not using pagination at all myself, one basic level should be fine to start with.
EDIT: outdated, see below
Now that we have a
We could have a default pagination setting in
The sensible way (it seems) is to:
That should cover 99% of the cases
We could also have a
No clue on how to handle pagination for the index page: what do you do if you have a couple of static pages + posts? Having your about page in the pagination doesn't make sense.
I'll only paginate sections for now and we can figure out the index section later (maybe only paginate pages that have a date or a weight?)