7 lines
221 B
JavaScript
7 lines
221 B
JavaScript
module.exports = (eleventyConfig) => {
|
|
eleventyConfig.addFilter('filterBy', (collection, value) => {
|
|
return collection.filter((item) => {
|
|
return item.data.tags.includes(value);
|
|
})
|
|
});
|
|
} |