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