feat: recent activity

This commit is contained in:
Cory Dransfeldt 2024-09-18 19:32:26 -07:00
parent d36f589bdf
commit 6055a00193
No known key found for this signature in database
12 changed files with 85 additions and 64 deletions

View file

@ -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
}

View file

@ -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)
}
}