Added pages and routes for Groups by tag and category

• Added:
- pages and routes for Groups by tag and category
This commit is contained in:
mgabdev
2020-09-14 17:12:45 -05:00
parent cb30e0dcbf
commit fafd1ef658
10 changed files with 355 additions and 5 deletions

View File

@@ -0,0 +1,7 @@
// https://github.com/danny-wood/unslugify/blob/master/index.js
export default function unslugify(text) {
const result = `${text}`.replace(/\-/g, " ");
return result.replace(/\w\S*/g, function (txt) {
return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
});
}