-
Notifications
You must be signed in to change notification settings - Fork 941
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
Pagination #7
Comments
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?) |
See #34 for basic implementation, doesn't paginate index page yet |
Will be easier after #14 to generalise I think and with the |
#55 should do the trick |
Pagination
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:
(section_name, num_per_page, path_name)
.Example of mixed site+blog content folder:
section_name
: for example you can useblog
and it will generate pagination for all the pages in blog. The only way I can see it working for the basic blog is to have a magic name, likebase
that will work on the first level in thecontent
foldernum_per_page
: how many pages on each page of the paginationpath_name
: what goes in the url for the pagination. For example, if I use"page"
, the second page will bemysite.com/page/2
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
The text was updated successfully, but these errors were encountered: