fix: urls

This commit is contained in:
Cory Dransfeldt 2024-06-02 07:54:56 -07:00
parent 71b50da27a
commit 75f6078996
No known key found for this signature in database
2 changed files with 6 additions and 1 deletions

View file

@ -46,6 +46,11 @@ export default {
if (postType === 'featured') return shuffleArray(posts.filter(post => post.featured === true)).slice(0, 3)
return posts.slice(0, 5)
},
slugifyPost: (title) => slugify(title, {
replacement: '-',
remove: /[#,&,+()$~%.'":*?<>{}\[\]\/\\|`!@\^\—]/g,
lower: true,
}),
// watching
featuredWatching: (watching, count) => shuffleArray(watching.filter(watch => watch.favorite === true)).slice(0, count),