Posts collection

This commit is contained in:
inherentlee committed 2026-09-24 09:58:16 -07:00
1 parent 2c4b3f1922
commit 157a1529f4
4 files changed
+230 -1

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
{
"allowedTypes": [],
"defaultFilename": null,
"dir": "/src/posts",
"disableComments": false,
"disablePreview": false,
"draftByDefault": false,
"linkable": true,
"maxSize": null,
"permissions": {
"everybody": [
"everything"
]
},
"rawEntityNames": false,
"schemas": [
"/.mattrbld/schemas/post.json"
],
"type": "md",
"urlTemplate": "/posts/:title/"
}
+11 -1
View File
@@ -25,7 +25,7 @@
"label": "Help" "label": "Help"
}, },
{ {
"icon": null, "icon": "document",
"label": "Pages", "label": "Pages",
"target": { "target": {
"name": "Project.Collection", "name": "Project.Collection",
@@ -34,6 +34,16 @@
} }
} }
}, },
{
"icon": "document-stack",
"label": "Posts",
"target": {
"name": "Project.Collection",
"params": {
"path": "/.mattrbld/collections/posts.json"
}
}
},
{ {
"label": "Media library", "label": "Media library",
"icon": "image-stack", "icon": "image-stack",
+198
View File
@@ -0,0 +1,198 @@
{
"fields": [
{
"type": "text",
"default": null,
"icon": "text-input",
"key": "title",
"label": "Title",
"localised": false,
"options": {
"wrapping": true,
"multiline": false
},
"tab": "Content",
"validation": {
"enforceMinMax": true,
"max": null,
"min": null,
"regex": null,
"regexError": null,
"required": true,
"unit": "length"
},
"value": null,
"version": 1,
"visibility": {
"hidden": false,
"showByValue": {
"field": null
}
}
},
{
"type": "text",
"default": null,
"icon": "text-input",
"key": "author",
"label": "Author",
"localised": false,
"options": {
"wrapping": true,
"multiline": false
},
"tab": "Content",
"validation": {
"enforceMinMax": true,
"max": null,
"min": null,
"regex": null,
"regexError": null,
"required": false,
"unit": "length"
},
"value": null,
"version": 1,
"visibility": {
"hidden": false,
"showByValue": {
"field": null
}
}
},
{
"type": "date",
"default": null,
"icon": "calendar",
"key": "date",
"label": "Date and Time",
"options": {
"outputFormat": "iso",
"removable": false,
"showTime": true,
"defaultToNow": true,
"useAsUpdatedAt": false,
"only": null
},
"tab": "Content",
"validation": {
"max": null,
"min": null,
"required": false,
"unit": "date",
"isString": true
},
"value": null,
"version": 2,
"visibility": {
"hidden": false,
"showByValue": {
"field": null
}
}
},
{
"type": "image",
"default": null,
"icon": "image",
"key": "image",
"label": "Hero image",
"options": {
"resolutionHint": "",
"removable": true,
"simple": false
},
"tab": "Content",
"validation": {
"max": null,
"required": false,
"unit": "filesize (MB)"
},
"value": null,
"version": 1,
"visibility": {
"hidden": false,
"showByValue": {
"field": null
}
}
},
{
"type": "rich text",
"default": null,
"icon": "text",
"key": "content",
"label": "Body",
"localised": false,
"options": {
"outputFormat": "markdown",
"blockFormats": [
"blockquote",
"heading",
"hr",
"orderedList",
"unorderedList",
"image",
"codeBlock"
],
"inlineFormats": [
"em",
"strong",
"link",
"code"
],
"formatOptions": [
"allowQuoteFooters",
"allowNestedLists",
"allowImageCaptions"
],
"inputRuleOptions": [
"autoquotes",
"dashes",
"ellipsis",
"noDoubleCaps",
"noDoubleSpace"
],
"minHeading": 2,
"maxHeading": 4,
"codeLangs": [
"html",
"css",
"javascript",
"markdown"
],
"allowRaw": false,
"urlTemplate": "",
"urlSuffix": "",
"linkOptions": [
"allowExternal",
"allowInternal"
]
},
"tab": "Content",
"validation": {
"enforceMinMax": true,
"max": null,
"min": null,
"regex": null,
"regexError": null,
"required": true,
"unit": "length"
},
"value": null,
"version": 1,
"visibility": {
"hidden": false,
"showByValue": {
"field": null
}
}
}
],
"tabs": [
{
"label": "Content",
"groupAs": null
}
]
}
View File
Whitespace-only changes.