refactor: actusHome filter

pull/1/head
Jalil Arfaoui 2022-09-02 13:35:04 +02:00
parent 4d86ef1ca9
commit 672a6d75f0
1 changed files with 1 additions and 5 deletions

View File

@ -58,11 +58,7 @@ module.exports = function(eleventyConfig) {
return [
...collection
.getFilteredByTag('actualites')
.filter(post => {
console.log(post.data.tags);
return !post.data.tags.some(tag => tag === 'excludeFromHome')
}
)
.filter(post => !post.data.tags.some(tag => tag === 'excludeFromHome'))
.reverse()
.slice(0,3)
]