8 lines
225 B
JavaScript
8 lines
225 B
JavaScript
module.exports = function (eleventyConfig) {
|
|
eleventyConfig.addCollection("colors", function (collectionApi) {
|
|
return collectionApi.getAll().filter(function (item) {
|
|
return "colors" in item.data;
|
|
});
|
|
});
|
|
};
|