-
-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Å Ä and Ö does not work in directory names #94
Comments
You can disable that by setting const site = lume({
slugifyUrls: false,
}); |
But then I lose the actual slugify logic? |
Lines 97 to 102 in 22717d5
Can a config key to disable just the L101 step be made? |
@valtlai Maybe the regex could ignore all characters defined in import { slugChars } from "https://deno.land/x/lume@v0.18.1/utils.js";
slugChars.set("ä", "ä"); |
Yeah, that’s one possibility. And/or maybe the Or maybe it could take a string: |
I like the idea of an object with options. For example:
|
I just added options to configure the slugifyUrls. To keep the const site = lume({
slugifyUrls: {
replace: {
"ä": "ä"
}
},
}); If you want to keep all non-alphanumeric characters: const site = lume({
slugifyUrls: {
alphanumeric: false
},
}); |
That should cover my case at least it seems. Thanks. :) |
I renamed my
/posts
folder/path to be/inlägg
as I wish to havehttps://example.com/inlägg/bla-bla
. Lume rewrites the ä to an a.The text was updated successfully, but these errors were encountered: