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