Move makeSlug to function

This commit is contained in:
Sam Carlton 2021-04-17 22:36:06 -05:00
parent d1cb178be1
commit 00f1f1397c
5 changed files with 17 additions and 30 deletions

9
helpers/slug.js Normal file
View file

@ -0,0 +1,9 @@
// Universal JS imports only
import slugify from 'slugify'
export function makeSlug ( name ) {
return slugify(name, {
lower: true,
strict: true
})
}