Start bringing over a (curated) configuration for CSS and Eleventy
This commit is contained in:
commit
6c599aeaaf
30 files changed
+9618
No files matched your search
@@ -0,0 +1,14 @@
|
||||
const slugify = require('slugify');
|
||||
|
||||
/** Converts string to a slug form. */
|
||||
const slugifyString = str => {
|
||||
return slugify(str, {
|
||||
replacement: '-',
|
||||
remove: /[#,&,+()$~%.'":*?<>{}]/g,
|
||||
lower: true
|
||||
});
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
slugifyString
|
||||
}
|
||||
Reference in new issue
Block a user