-
Notifications
You must be signed in to change notification settings - Fork 5
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
Is there a way to order files and folders? #3
Comments
Hi @metasaver, The If you want to order files you can add a number to the beginning of the files (in file system). 1.fileX.md
2.fileY.md
3.fileX.md You can also use negative numbers to display them in reverse order : -1.fileX.md
-2.fileY.md
-3.fileX.md
Hope this helps. |
-1 seems to work thanks. Btw they werent files but sub folders in my yaml. I was just trying order like this: file |
The order of files and folders are sync together. You can also start from 1 filesystem:
yaml file:
|
@metasaver hey just thought i'd mention i've found lettering the files (instead of numbering) in the filesystem to work a bit better.
this will successfully put bananas.md on top with apples.md below it, and put them both above all the subfolders. otherwise to get the same effect with numbers i have to do:
anyway just thought i'd share my findings. |
Hi @Boosh511, thanks for your feedback! I'm glad you found this useful. |
Is any of this possible in the current implementation, I have scoured the example and docs but haven't been able to find anything.
Btw, very nice plugin.
This is my sidebars file - it doesn't throw an error.
This is the result. The arrows are where I am trying to get the files to show up (#1 & 4), the order of level 2 is alphabetical, not as in the sidebars.yml
Thanks
The text was updated successfully, but these errors were encountered: