fix: urls
This commit is contained in:
parent
71b50da27a
commit
75f6078996
2 changed files with 6 additions and 1 deletions
|
@ -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),
|
||||
|
|
Reference in a new issue