Start bringing over a (curated) configuration for CSS and Eleventy

This commit is contained in:
Lewis Dale committed 2023-02-04 16:27:15 +00:00
commit 6c599aeaaf
30 files changed
+9618

No files matched your search

+14
View File
@@ -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
}