I’d like to have my folder names independent of the route / URL. The reason for this is say, you have a menu structure displayed as:
Introduction
Getting started
…
Others
and then your directory inside the content folder is ordered by name as:
getting-started
introduction
others
This becomes hard when you have a lot of folders. Hence I would like to prefix my folders with numbers the same as in the menu so it becomes easy to find and order them. So something like this:
You want to look for url in the frontmatter. Create your folders, then add in each file’s frontmatter something like
url: /introduction/chapter-title
This will override the automatic link title. Depending on your needs slug might help. If you have for instance a _index.md file in the folder 01.introduction you could add slug: introduction there and subsequent files in that structure will use introduction in the url. But it might be too specific for you.