-
- {n.frontmatter.title}
-
- {n.frontmatter.description && {n.frontmatter.description}
}
-
- ))}
+ {sortPages(
+ parentNode.children.filter(
+ c =>
+ !c.frontmatter.sidebar_hidden &&
+ c.frontmatter.title &&
+ !exclude?.includes(c.slug)
+ ),
+ // a hacky adapter to reuse the same sidebar sorter
+ node => ({...node, context: node.frontmatter})
+ ).map(n => (
+