This branch adds support for paginating collections defined in site.data, and raises an exception if the specified collection could not be found.
Motivation
I've been relying on defining jekyll datasets in csv and yaml files. Since they are not actual collections and are instead defined in the _data directory, I would get an error when trying to paginate a data collection.
Now, you can define the data collection like this:
Summary
This branch adds support for paginating collections defined in
site.data
, and raises an exception if the specified collection could not be found.Motivation
I've been relying on defining jekyll datasets in csv and yaml files. Since they are not actual collections and are instead defined in the _data directory, I would get an error when trying to paginate a data collection.
Now, you can define the data collection like this:
and the collection will be paginated correctly.