feat: recent activity
This commit is contained in:
parent
d36f589bdf
commit
6055a00193
12 changed files with 85 additions and 64 deletions
|
@ -3,7 +3,6 @@ import feeds from './feeds.js'
|
|||
import general from './general.js'
|
||||
import media from './media.js'
|
||||
import navigation from './navigation.js'
|
||||
import posts from './posts.js'
|
||||
|
||||
export default {
|
||||
...dates,
|
||||
|
@ -11,5 +10,4 @@ export default {
|
|||
...general,
|
||||
...media,
|
||||
...navigation,
|
||||
...posts
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
import { shuffleArray } from '../utilities/index.js'
|
||||
|
||||
export default {
|
||||
filterByPostType: (posts, postType) => {
|
||||
if (postType === 'featured') return shuffleArray(posts.filter(post => post.featured === true)).slice(0, 3)
|
||||
return posts.slice(0, 5)
|
||||
}
|
||||
}
|
Reference in a new issue