feat: programmatically generate open graph cards

This commit is contained in:
Cory Dransfeldt 2023-12-13 14:41:46 -08:00
parent e34ad2cb0e
commit 0b47dc7747
No known key found for this signature in database
15 changed files with 144 additions and 35 deletions

13
config/utils/index.js Normal file
View file

@ -0,0 +1,13 @@
const slugify = require('slugify')
const slugifyString = (str) => {
return slugify(str, {
replacement: '-',
remove: /[#,&,+()$~%.'":*?<>{}]/g,
lower: true,
})
}
module.exports = {
slugifyString,
}