Update content through Mattrbld

This commit is contained in:
2026-05-13 11:11:59 -07:00
parent 7cbd665243
commit 6dcbdca3ea
4 changed files with 125 additions and 1 deletions

View File

@ -14,7 +14,8 @@
},
"rawEntityNames": false,
"schemas": [
"/.mattrbld/schemas/page.json"
"/.mattrbld/schemas/page.json",
"/.mattrbld/schemas/page-html.json"
],
"type": "md",
"urlTemplate": "/:title/"

View File

@ -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
}
]
}

5
src/index-html.md Normal file
View File

@ -0,0 +1,5 @@
---
title: testing
___mb_schema: /.mattrbld/schemas/page-html.json
---
<p>&lt;h2&gt;Does raw html work here&lt;/h2&gt;</p>

View File

@ -0,0 +1,6 @@
---
title: testing md with html
hero: null
___mb_schema: /.mattrbld/schemas/page.json
---
<h2>does raw html work here</h2>