RustyCMS: File-based headless CMS with REST API, admin UI, multilingual support

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Peter Meier
2026-02-16 09:30:30 +01:00
commit aad93d145f
224 changed files with 19225 additions and 0 deletions

48
types/blog_post.json5 Normal file
View 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)"
},
}
}