Upgrade to Eleventy 3.0.0
Build and copy to prod / build-and-copy (push) Has been cancelled

This commit is contained in:
Lewis Dale committed 2024-10-06 12:36:54 +01:00
1 parent 862f12b4d0
commit e0c315d837
30 files changed
+2575 -3561

No files matched your search

+3 -4
View File
@@ -1,7 +1,6 @@
const slugify = require('slugify');
import slugify from 'slugify';
/** Converts string to a slug form. */
const slugifyString = str => {
export const slugifyString = str => {
return slugify(str, {
replacement: '-',
remove: /[#,&,+()$~%.'":*?<>{}]/g,
@@ -9,6 +8,6 @@ const slugifyString = str => {
});
};
module.exports = {
export default {
slugifyString
}