From 672a6d75f0ebcf3ee9f77553acaa988043f0df9a Mon Sep 17 00:00:00 2001 From: Jalil Arfaoui Date: Fri, 2 Sep 2022 13:35:04 +0200 Subject: [PATCH] refactor: actusHome filter --- .eleventy.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.eleventy.js b/.eleventy.js index 0df676d..77ed19f 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -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) ]