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