treat _index as index

This commit is contained in:
Jacky Zhao
2023-07-15 23:33:06 -07:00
parent a3e4c86a4c
commit f82282367e
3 changed files with 20 additions and 10 deletions

View File

@ -122,6 +122,7 @@ describe('transforms', () => {
describe('slugifyFilePath', () => {
asserts([
["content/index.md", "content/index"],
["content/_index.md", "content/index"],
["/content/index.md", "content/index"],
["content/cool.png", "content/cool"],
["index.md", "index"],