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 [ return [
...collection ...collection
.getFilteredByTag('actualites') .getFilteredByTag('actualites')
.filter(post => { .filter(post => !post.data.tags.some(tag => tag === 'excludeFromHome'))
console.log(post.data.tags);
return !post.data.tags.some(tag => tag === 'excludeFromHome')
}
)
.reverse() .reverse()
.slice(0,3) .slice(0,3)
] ]