diff --git a/src/components/ListPosts.vue b/src/components/ListPosts.vue index 23b2219..042c52a 100644 --- a/src/components/ListPosts.vue +++ b/src/components/ListPosts.vue @@ -5,6 +5,7 @@ import type { PageMeta, PostRouterRecord } from '~build/node' const router = useRouter() const posts = router.getRoutes() + .filter(page => page.name) .filter(page => page.meta.layout === 'post') .map( (page: any): PostRouterRecord => {