course landing page metadata

This commit is contained in:
Rotimi Best
2023-10-20 08:40:14 +01:00
parent 0f2d60534d
commit fd7c7e6e55
2 changed files with 11 additions and 0 deletions
+1
View File
@@ -1,6 +1,7 @@
function generateSlug(title) {
return title
.match(/[^\W\s\d]*/g, '')
.filter((v = '') => !!v.trim())
.join('-')
.toLowerCase()
.concat(`-${new Date().getTime()}`);