Files
rustycms/types/blog_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

60 lines
1.2 KiB
Plaintext

{
"name": "blog_post",
"description": "Simple blog post with title, body, tags and publish status",
"tags": [
"content",
"blog"
],
"category": "content",
"fieldOrder": [
"author",
"body",
"created_at",
"excerpt",
"published",
"tags",
"title"
],
"fields": {
"author": {
"type": "string",
"description": "Author name"
},
"body": {
"type": "markdown",
"required": true,
"description": "Main content (Markdown)",
"minLength": 1
},
"created_at": {
"type": "datetime",
"auto": true,
"readonly": true,
"description": "Creation timestamp (auto-generated)"
},
"excerpt": {
"type": "string",
"description": "Short summary for previews",
"maxLength": 500
},
"published": {
"type": "boolean",
"default": false,
"description": "Whether the post is publicly visible"
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"description": "Categorisation tags"
},
"title": {
"type": "string",
"required": true,
"description": "Title of the blog post",
"minLength": 1,
"maxLength": 200
}
}
}