filter out parent page from ChildrenQuery response #332
Labels
breaking
Content as Data
enhancement
Improve something existing (e.g. no docs, new APIs, etc)
v0.8.0
Milestone
Type of Change
Summary
Right now
ChildrenQuery
is returning the index.md as part of the array of pages returned, which is effectively the parent route. I think in this case, it doesn't make sense to return the parent if you are asking for the children, or else to render the children as a list, you'll have to exclude the parent, e.g. ${parent}/index.mdSo effectively the resolver should just filter out index.md then.
Details
Given a structure like this
And render it like this
You'll have to something like this in your component
Or else you'll have a list like this, when you probably only want the posts themselves
The text was updated successfully, but these errors were encountered: