Skip to content

Commit

Permalink
feat: add some page metadata models
Browse files Browse the repository at this point in the history
  • Loading branch information
buuhuu committed Nov 12, 2024
1 parent dda0a1b commit fcd2306
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 0 deletions.
49 changes: 49 additions & 0 deletions component-models.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,53 @@
[
{
"id": "page-metadata",
"fields": [
{
"component": "text",
"name": "template",
"label": "Template"
},
{
"component": "container",
"name": "social",
"label": "Social",
"fields": [
{
"component": "text",
"name": "og:title",
"label": "Title"
}
]
}
]
},
{
"id": "article-metadata",
"fields": [
{
"component": "text",
"name": "template",
"label": "Template"
},
{
"component": "container",
"name": "social",
"label": "Social",
"fields": [
{
"component": "text",
"name": "og:title",
"label": "Title"
}
]
},
{
"component": "text",
"name": "articleAuthor",
"label": "Author"
}
]
},
{
"id": "image",
"fields": [
Expand Down
3 changes: 3 additions & 0 deletions models/_component-models.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
[
{
"...": "./_page.json#/models"
},
{
"...": "./_image.json#/models"
},
Expand Down
39 changes: 39 additions & 0 deletions models/_page.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"models": [
{
"id": "page-metadata",
"fields": [
{
"component": "text",
"name": "template",
"label": "Template"
},
{
"component": "container",
"name": "social",
"label": "Social",
"fields": [
{
"component": "text",
"name": "og:title",
"label": "Title"
}
]
}
]
},
{
"id": "article-metadata",
"fields": [
{
"...": "#/models/page-metadata/fields"
},
{
"component": "text",
"name": "articleAuthor",
"label": "Author"
}
]
}
]
}

0 comments on commit fcd2306

Please sign in to comment.