Files
rustycms/types/blog_post.json5

48 lines
1.0 KiB
Plaintext

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