rubyworks / brite

Brite is "Web Write"
http://rubyworks.github.com/brite
Other
5 stars 1 forks source link

Pagination Support #2

Open ghost opened 15 years ago

ghost commented 15 years ago

Need to add pagination support for blogging. Once could of course manually add pages that covered only a given period or number of posts, but it would be nice if this could be done automatically somehow.

Pagination can be a challenge for a static site, since each page must be a separate file. I think it would be best to keep the design highly structured around time periods. We could offer an option to paginate on a monthly or yearly basis (default to yearly), and set which page to be paginated. This would create multiple paged for the same template page, but each having the different set of posts.

trans commented 12 years ago

Still a TODO item. In the mean time it's not hard to handle pagination in Javascript, which works well enough for small sites. But it's not the best fit for a site with lots of posts. In that case one can create separate pages manually to handle different time periods or counts --which is essentially what Brite would have to do "automatically" when pagination support becomes built-in.