Data and collections
Last updated
Last updated
Jekyll provides two main ways to create and maintain large lists/sets of items: data and collections.
The template comes with , but if you need to create more/different ones, here's how.
If you want to have a large set of structured or nested items in a single file, use a .
Put a .yaml
file in the /_data
folder with any name, and fill it with data. The structure of the data can be arbitrary.
Example:
Example:
If you want to have a large set of items in separate files that can also generate their own separate pages on your site, use .
Put .md
files in a folder prefixed with a _
, and fill their with data. To generate a separate page for each item in the collection, set output: true
in your config file .