What is a collection?
A collection is a special grouping of content inside of 11ty. At its core, a collection is created by a group of pages that have been associated with one another via the use of a tags
array in a data cascade or via one of a few programmatic ways in the 11ty configuration.
By creating this grouping, a series of pages can be used as iterable data in any template via the 11ty collections
object or manipulated into new combinations with 11ty’s Collection API in the configuration file. Everything from blog posts and images to podcast episodes is better served through a collection instead of singular, unconnected pages.
With that definition in mind, let’s create our first collection.