oleeskild / obsidian-digital-garden

MIT License
1.2k stars 113 forks source link

Mangled directory name and url slug. #278

Open AliciaBytes opened 1 year ago

AliciaBytes commented 1 year ago

I have a note called Pathfinder 2e in a directory called TTRPGs. I would like the directory name to keep capitalized like this, but for some reason it gets mangled when published.

How it looks like in Obsidian:

image

How it looks in the published website file explorer sidebar: image

How it looks like in the url: image

Is it possible to fix this? Links to snapshots for the reproduction:

Hope this can be fixed. I might look into the issue myself if I have spare time the next few weeks.

AliciaBytes commented 1 year ago

Also as a follow up that I forgot: I can work around the url mangling with dg-permalink: ttrpgs/pathfinder-2e but I don't know of a workaround for the directory name mangling.

tinkerrc commented 1 year ago

Do you only want to slugify the note name but not the target path? If you don't need to slugify anything, you can use: image