buddhist-uni / buddhist-uni.github.io

Free courses, books, and talks about Buddhism.
https://buddhistuniversity.net
84 stars 7 forks source link

Paginate Long Lists #38

Closed khemarato closed 1 month ago

khemarato commented 2 years ago

Some of the lists on the site (such as the list of all articles) are quite long and could probably use some pagination. This will require either writing a Jekyll Plugin to create "/page/1" etc for these lists OR will require using a JS library to display the list as a paginated table (I'm currently leaning towards the latter as it will also allow custom sorting)

khemarato commented 2 years ago

The search results page could probably be paginated fairly easily, so that may be a good place to start.

khemarato commented 2 months ago

For going with the JS approach, let's use the datatables library: https://datatables.net/examples/basic_init/zero_configuration.html

Which should fallback nicely for any users not enabling js