lumeland/lume

Handle `index` basename

oscarotero opened this issue · 0 comments

Page files with the name index.* have the index basename.
This is not practical to sort pages by basename with the nav.menu() and search.pages() functions.

I propose to use the folder name as the basename for these cases. For example:

page file basename
/index.md index
/pages/index.md pages
/pages/page1.md page1

This is a breaking change. Investigate if this can cause problems