Skip to content
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

Handle index basename #660

Open
oscarotero opened this issue Sep 5, 2024 · 0 comments
Open

Handle index basename #660

oscarotero opened this issue Sep 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@oscarotero
Copy link
Member

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

@oscarotero oscarotero added the bug Something isn't working label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant