refactor: actusHome filter
parent
4d86ef1ca9
commit
672a6d75f0
|
@ -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)
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue