Open robinmetral opened 2 months ago
published_date
s and the docs explicitly states that they can be used e.g. to iterate over a collection of staff members. Sorting is by date if present in all items, otherwise it falls back to an alphabetical sorting by slug. Custom sorting is also an option
tags
to generate collections (and they can be declared in config for faster builds). Collection pages can be anywhere in the directory. They are sorted by date, and all content is dated (falls back on file created date, with a bunch of caveats). Custom sorting is also an option but Eleventy recommends using date to sort collections (?!). All content is also included in an automatic all
collection, which can be used to loop through all pages.
published_date
or a custom sort, and fall back to the slugall
collection is used for, might be interesting to look at use cases :eyes:processContext
: loop through pages and group them by anything you want in frontmatter. These are kind of manual collections. brut collections would probably stick closer to the fs and group things that are colocated in a given directory
Basic context and collections support were added in #34. There is clearly some room for iterations.
Some questions to get started:
context.<collection>
. Should it include all pages instead?published_date
are allowed in collections. Should this change?