mernmail-website/sanity/structure.js

12 lines
333 B
JavaScript
Raw Normal View History

2024-11-08 09:43:04 +01:00
// https://www.sanity.io/docs/structure-builder-cheat-sheet
export const structure = (S) =>
S.list()
.title("Blog")
.items([
S.documentTypeListItem("blog").title("Posts"),
S.divider(),
...S.documentTypeListItems().filter(
(item) => item.getId() && !["blog"].includes(item.getId())
)
]);