Track all types in git, sync to server on deploy
Some checks failed
Deploy to Server / deploy (push) Failing after 7s
Some checks failed
Deploy to Server / deploy (push) Failing after 7s
This commit is contained in:
94
types/post.json5
Normal file
94
types/post.json5
Normal file
@@ -0,0 +1,94 @@
|
||||
{
|
||||
"name": "post",
|
||||
"description": "Blog post with layout, SEO and optional tags",
|
||||
"tags": [
|
||||
"content",
|
||||
"blog"
|
||||
],
|
||||
"category": "content",
|
||||
"extends": [
|
||||
"content_layout",
|
||||
"seo"
|
||||
],
|
||||
"defaultSort": "_updated",
|
||||
"defaultOrder": "desc",
|
||||
"fieldOrder": [
|
||||
"slug",
|
||||
"headline",
|
||||
"subheadline",
|
||||
"excerpt",
|
||||
"content",
|
||||
"postImage",
|
||||
"postTag",
|
||||
"created",
|
||||
"date",
|
||||
"icon",
|
||||
"important",
|
||||
"linkName",
|
||||
"showCommentSection"
|
||||
],
|
||||
"fields": {
|
||||
"slug": {
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"unique": true
|
||||
},
|
||||
"headline": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"subheadline": {
|
||||
"type": "string"
|
||||
},
|
||||
"excerpt": {
|
||||
"type": "string",
|
||||
"description": "Short summary for previews",
|
||||
"maxLength": 500
|
||||
},
|
||||
"content": {
|
||||
"type": "markdown",
|
||||
"required": true,
|
||||
"description": "Post body (Markdown)"
|
||||
},
|
||||
"postImage": {
|
||||
"type": "referenceOrInline",
|
||||
"collection": "img",
|
||||
"description": "Featured image"
|
||||
},
|
||||
"postTag": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "reference",
|
||||
"collection": "tag"
|
||||
},
|
||||
"description": "Associated tags"
|
||||
},
|
||||
"created": {
|
||||
"type": "datetime",
|
||||
"auto": true,
|
||||
"readonly": true
|
||||
},
|
||||
"date": {
|
||||
"type": "datetime",
|
||||
"description": "Optional display date"
|
||||
},
|
||||
"icon": {
|
||||
"type": "string"
|
||||
},
|
||||
"important": {
|
||||
"type": "boolean",
|
||||
"required": true,
|
||||
"default": false,
|
||||
"description": "Mark post as important"
|
||||
},
|
||||
"linkName": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"showCommentSection": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "Show comment section (default: true)"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user