next-static icon indicating copy to clipboard operation
next-static copied to clipboard

Pagination

Open infiniteluke opened this issue 7 years ago • 2 comments

Sooner rather than latter, showing all posts on the home page will be a bad idea. Paging can help that.

Should include a config option for pageSize to control how many posts are in each page. Url should look like mysite.com/?page=2, and aliasing page 1 to the home page.

infiniteluke avatar Jun 13 '17 00:06 infiniteluke

At this point, I believe the best method is to use graphQL and pre-parse the large post list into JSON fragments. There's no better way to go here.

I'm assuming json-graphql-server is the way to go.

jacobpdq avatar Sep 06 '17 22:09 jacobpdq

I don't think that is necessary. I'll try to find some time this week to get pagination implemented as an example for you.

infiniteluke avatar Sep 11 '17 22:09 infiniteluke