Managing :slug or :url in nested branch and leaf bundles

My content directory looks like this

content/
├── foo/
│   ├── foo-a/
│   │   ├── 1-bar-unique-name-a/
│   │   │   ├── index.md
│   │   ├── 2-bar-unique-name-b/
│   │   │   ├── _index.md
│   │   │   ├── page-name-i.md
│   │   │   ├── page-name-ii.md
│   │   ├── 3-bar-unique-name-c/
│   │   ├── _index.md
│   │    ...
│   ├── foo-b/
│   │    ...
└── _index.md

I am trying to create this following url structure without editing each page’s front matter. I can achieve desired result by editing url on a number of pages.

.../foo/foo-a/unique-name-b
and
.../foo/foo-a/unique-name-b/page-name-i

Is there a way to set the slug or url on an _index.md and have it affect all children without having to also set all their urls?


Referencing

Technically yes, but in relation to what you want to accomplish, the answer is no.

Seems like a lot of work to remove 1- and 2- from the URLs. I’d either live with it or change the file/dir names.

Thanks! I agree, “just change the directory names.”