From 6dcbdca3ea7a1f742affe62be87385d485dc1f6a Mon Sep 17 00:00:00 2001 From: Lee Cattarin Date: Wed, 13 May 2026 11:11:59 -0700 Subject: [PATCH] Update content through Mattrbld --- .mattrbld/collections/pages.json | 3 +- .mattrbld/schemas/page-html.json | 112 +++++++++++++++++++++++++++++++ src/index-html.md | 5 ++ src/index-with-raw-html.md | 6 ++ 4 files changed, 125 insertions(+), 1 deletion(-) create mode 100644 .mattrbld/schemas/page-html.json create mode 100644 src/index-html.md create mode 100644 src/index-with-raw-html.md diff --git a/.mattrbld/collections/pages.json b/.mattrbld/collections/pages.json index 6e918aa..87ddff5 100644 --- a/.mattrbld/collections/pages.json +++ b/.mattrbld/collections/pages.json @@ -14,7 +14,8 @@ }, "rawEntityNames": false, "schemas": [ - "/.mattrbld/schemas/page.json" + "/.mattrbld/schemas/page.json", + "/.mattrbld/schemas/page-html.json" ], "type": "md", "urlTemplate": "/:title/" diff --git a/.mattrbld/schemas/page-html.json b/.mattrbld/schemas/page-html.json new file mode 100644 index 0000000..8adac4d --- /dev/null +++ b/.mattrbld/schemas/page-html.json @@ -0,0 +1,112 @@ +{ + "fields": [ + { + "type": "text", + "default": null, + "icon": "text-input", + "key": "title", + "label": "Title", + "localised": false, + "options": { + "wrapping": true, + "multiline": false + }, + "tab": "Untitled Tab", + "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": "rich text", + "default": null, + "icon": "text", + "key": "content", + "label": "body", + "localised": false, + "options": { + "outputFormat": "html", + "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": [ + "forceBlankTarget", + "allowExternal", + "allowInternal" + ] + }, + "tab": "Untitled Tab", + "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 + } + } + } + ], + "tabs": [ + { + "label": "Untitled Tab", + "groupAs": null + } + ] +} \ No newline at end of file diff --git a/src/index-html.md b/src/index-html.md new file mode 100644 index 0000000..5bcb222 --- /dev/null +++ b/src/index-html.md @@ -0,0 +1,5 @@ +--- +title: testing +___mb_schema: /.mattrbld/schemas/page-html.json +--- +

<h2>Does raw html work here</h2>

diff --git a/src/index-with-raw-html.md b/src/index-with-raw-html.md new file mode 100644 index 0000000..5e92b1b --- /dev/null +++ b/src/index-with-raw-html.md @@ -0,0 +1,6 @@ +--- +title: testing md with html +hero: null +___mb_schema: /.mattrbld/schemas/page.json +--- +

does raw html work here