RustyCMS: File-based headless CMS with REST API, admin UI, multilingual support
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
48
types/blog_post.json5
Normal file
48
types/blog_post.json5
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
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)"
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user