feat: upgrade to 11ty 3.0.0@alpha
This commit is contained in:
parent
2cd8e4a380
commit
e16633653a
43 changed files with 578 additions and 5039 deletions
|
@ -1,13 +1,9 @@
|
|||
const slugify = require('slugify')
|
||||
import slugify from 'slugify'
|
||||
|
||||
const slugifyString = (str) => {
|
||||
export const slugifyString = (str) => {
|
||||
return slugify(str, {
|
||||
replacement: '-',
|
||||
remove: /[#,&,+()$~%.'":*?<>{}]/g,
|
||||
lower: true,
|
||||
})
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
slugifyString,
|
||||
}
|
||||
|
|
Reference in a new issue