feat: support nav and pages in cms

This commit is contained in:
Cory Dransfeldt 2024-07-14 19:21:04 -07:00
parent e1b0dc5243
commit f5adf0ba06
No known key found for this signature in database
35 changed files with 235 additions and 444 deletions

View file

@ -14,5 +14,5 @@ export default async function () {
},
}).catch()
const pages = await res
return pages.results.filter((p) => p.page.includes('posts'))
return pages['results'].filter((p) => p['page'].includes('posts'))
}