From 28a4623e22067e68e9bbeff65806b577b9efa212 Mon Sep 17 00:00:00 2001 From: Lee Cattarin Date: Thu, 24 Sep 2026 10:05:14 -0700 Subject: [PATCH] Update content through Mattrbld --- .mattrbld/schemas/post.json | 39 +++++++++++++++++++++++++++++++++---- src/posts/test-post.md | 9 +++++++++ 2 files changed, 44 insertions(+), 4 deletions(-) create mode 100644 src/posts/test-post.md diff --git a/.mattrbld/schemas/post.json b/.mattrbld/schemas/post.json index dadb456..3b07b85 100644 --- a/.mattrbld/schemas/post.json +++ b/.mattrbld/schemas/post.json @@ -64,12 +64,12 @@ "type": "date", "default": null, "icon": "calendar", - "key": "date", - "label": "Date and Time", + "key": "date-posted", + "label": "Date posted", "options": { "outputFormat": "iso", "removable": false, - "showTime": true, + "showTime": false, "defaultToNow": true, "useAsUpdatedAt": false, "only": null @@ -78,7 +78,38 @@ "validation": { "max": null, "min": null, - "required": false, + "required": true, + "unit": "date", + "isString": true + }, + "value": null, + "version": 2, + "visibility": { + "hidden": false, + "showByValue": { + "field": null + } + } + }, + { + "type": "date", + "default": null, + "icon": "calendar", + "key": "date-updated", + "label": "Date updated", + "options": { + "outputFormat": "iso", + "removable": false, + "showTime": false, + "defaultToNow": true, + "useAsUpdatedAt": true, + "only": null + }, + "tab": "Content", + "validation": { + "max": null, + "min": null, + "required": true, "unit": "date", "isString": true }, diff --git a/src/posts/test-post.md b/src/posts/test-post.md new file mode 100644 index 0000000..99d81ec --- /dev/null +++ b/src/posts/test-post.md @@ -0,0 +1,9 @@ +--- +title: null +author: null +date: '2026-09-24T10:03:00-07:00' +image: null +___mb_schema: /.mattrbld/schemas/post.json +___mb_unedited: true +--- +