This slugify function is a bit too simple:
function slugify(str, base) {
const slug = str
.toLowerCase()
.replace(/[^a-z0-9]+/g, "-")
.replace(/(^-|-$)+/g, "");
return `${base}/${slug}`.replace(/\/\/+/g, "/");
}
This lead to "/authors/s-bastien-lorber" for my author page
I suggest using a technique to replace accents with non-accent chars before replacing by -. Also using a dedicated slugification package could do the job
https://stackoverflow.com/a/37511463/82609
Eventually having the ability to choose my own slug could be handy
Will add a package to handle this and have it the same as articles where you can define an optional slug that overrides the generated one.
Special characters and custom slug now supported for authors.
v0.4.2
Thanks :)
Same issue for posts title m茅tro becomes m-tro - could we get the same fix there?
great idea. will port it to handle Posts as well.
This should already be handled actually! at least locally. maybe I need to publish the update :)

That's probably going to help 馃槢
Most helpful comment
Thanks :)