11 lines
333 B
JavaScript
11 lines
333 B
JavaScript
// 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())
|
|
)
|
|
]);
|