group(attributeName) groups files by an attribute. It process each file of a set and if a file contains an attribute, it will be collected into the group by attribute value.
The following methods are added to the
attributeName() (in plural) - returns all attributes
<attributeName>Group(<groupName>) - returns all files of a group with given name.
This example will scan all the files (file references). If file has attribute
---title: Some cool titletype: A---
it will be collected and grouped in the
A group (the name of the
Later on, you can get all the types using
site.types() and all the files of a group using