Skip to content
Discussion options

You must be logged in to vote

By default there is no such option. You can either remove the whole nav tree and it will automatically create it with all files in alphabetical order. You could change the naming of the files to be more consistent like 0001_News.md etc. If you want more control you can use the awesome-pages plugin, however I'm not sure if it's compatible with the Material theme blog plugin.

After installing it's best to remove the whole nav tree from mkdocs.yml, and then add a .pages file to a given directory where you want to structure the nav tree part. I guess in your case you'd use 3 .pages files:

In docs/ root:

nav:
    - home: index.md
    - news
    - blog

In news and blog:

nav:
    - ...

The plug…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by squidfunk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants