What are collections

Collections are custom content types different from pages and posts. You might create a collection if you want to treat a specific set of articles in a unique way, such as with a custom layout or listing. For more detail on collections, see Ben Balter's explanation of collections here.

Create a collection

To create a collection, add the following in your configuration file:

collections:
  tooltips:
    output: true

In this example, tooltips is the name of the collection.

Interacting with collections

You can interact with collections by using the site.<collection_namespace> path. In this case, if I wanted to loop through all tooltips, I would use site.tooltips instead of site.pages or site.posts.

See Collections in the Jekyll documentation for more information.