Jekyll Collections
Jekyll seems to be all about blogposts, but you can declare any sort of collections.
You only need to add a collection-key to your _config.yml
file and create a directory with the same name prefixed
with an unserscore in the root of your project.
collections:
plants:
output: true
Now just create a directory _plants
and add markdown files to it. You can access the collection in your templates using site.plants
.
The output: true
key in the _config.yml
file tells jekyll to generate pages for the collection. This will also
enable you to use plant.url
to link to the generated page.