Replies: 1 comment
|
const prevItem = list[index - 1];
if (prevItem && prevItem.name === item.name) {
items[items.length - 1] = { ...prevItem, withIndexPage: true, frontMatter: item.frontMatter };
continue;
}That's comparing two entries in the same parent's file list, e.g.
For pages router in v3, the supported way to collapse a folder into one link is the sibling pattern from the docs, not a nested index: If |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hey, sorry if this has been answered already / if this is worded badly.
I'm still on Nextra 3 and have been trying to figure out how to achieve this:
to act the same as
This is how it's being displayed right now

Edit:
asIndexPageremarkPlugins) support? #5038)All reactions