5 lines
211 B
JavaScript
5 lines
211 B
JavaScript
|
module.exports = function(eleventyConfig) {
|
||
|
eleventyConfig.addFilter('metricsToPosts', function(metrics, posts) {
|
||
|
return metrics.map(metric => posts.find(post => post.url === metric.post));
|
||
|
})
|
||
|
};
|