Directory-Breadcrumb mapping #627
-
Would it be possible to have a directory called My Site / about / What I would like to do is have a breakcrumb that looks like this: My Site / About Us / and the "About Us" page links to /about/ (not /about-us/). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The theme uses
The breadcrumb should display the title page of every directory. But if there are intermediate directories, without pages, like
The folder |
Beta Was this translation helpful? Give feedback.
-
@oscarotero what you explained makes sense -- in my initial testing I didn't create an index page for |
Beta Was this translation helpful? Give feedback.
The theme uses
item.slug
if there isn't anyindex.html
file in the directory. Otherwise it uses the page title.If your url structure is, for example:
The breadcrumb should display the title page of every directory. But if there are intermediate directories, without pages, like
The folder
/about/team/
doesn't have a page, so the breadcrumb doesn't know what to show and use the slug. See the documentation for more info.