Files
rustycms/types/post.json5
Peter Meier 4de99db670
Some checks failed
Deploy to Server / deploy (push) Failing after 7s
Track all types in git, sync to server on deploy
2026-03-15 14:38:37 +01:00

94 lines
1.8 KiB
Plaintext

{
"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)"
}
}
}