-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
In my website, there is one root _index, and there are many subdirectories of content/ underneath that.
Each of these subdirectories has an index.md and a changelog.md.
What I've found is that slugify.paths set to on, will slugify only the path of the index.md, and not the changelog.md. So if the subdirectory name is, for example, chim_climbing, the index.md becomes index.html in public/chim-climbing, and the changelog becomes index.html in public/chim_climbing, the unmodified directory name prior to slugification.
I glanced over the source for a few moments and page.rs doesn't obviously appear as though it could be missing slugifying anything, but, it struck me as really odd and interesting that there's an explicit branch for when the page name is index. I think the other branches fail somehow and don't get slugified at all.
Please lemme know if I can help somehow! I'd like to have my URLs all slugified, but, since this has broken my changelog pages, for now I've just set slugify.paths = off.