Update content through Mattrbld

This commit is contained in:
2026-05-13 10:27:36 -07:00
parent 81d7b484c8
commit 59b643197e
7 changed files with 296 additions and 20 deletions

View File

@ -0,0 +1,21 @@
{
"allowedTypes": [],
"defaultFilename": null,
"dir": "/src",
"disableComments": false,
"disablePreview": false,
"draftByDefault": false,
"linkable": true,
"maxSize": null,
"permissions": {
"everybody": [
"everything"
]
},
"rawEntityNames": false,
"schemas": [
"/.mattrbld/schemas/page.json"
],
"type": "md",
"urlTemplate": "/:title/"
}

View File

@ -4,23 +4,6 @@
"corsProxy": "/corsprox",
"name": "mattrbld-test",
"sidebar": [
{
"label": "The sidebar has not yet been configured for this project"
},
{
"icon": "wrench-and-driver",
"label": "Configure now",
"target": {
"name": "Project.Settings",
"query": {
"tab": "sidebar"
}
},
"onlyPrivileged": true
},
{
"separator": true
},
{
"label": "Dashboard",
"icon": "grid",
@ -29,6 +12,16 @@
},
"protected": true
},
{
"icon": "globe-alt",
"label": "pages",
"target": {
"name": "Project.Collection",
"params": {
"path": "/.mattrbld/collections/pages.json"
}
}
},
{
"label": "Media Library",
"icon": "image-stack",
@ -62,9 +55,68 @@
"previewUrl": null,
"languages": [],
"media": {
"advanced": false,
"customFields": null,
"dir": null,
"advanced": true,
"customFields": [
{
"type": "text",
"default": null,
"icon": "text-input",
"key": "alt",
"label": "Alternative Text",
"localised": false,
"options": {
"wrapping": true,
"multiline": false
},
"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": "text",
"default": null,
"icon": "text-input",
"key": "title",
"label": "Title",
"localised": false,
"options": {
"wrapping": true,
"multiline": false
},
"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
}
}
}
],
"dir": "/src/images",
"maxSize": null,
"outputPath": null,
"permissions": {

View File

@ -0,0 +1,4 @@
{
"alt": "chickadee",
"title": null
}

138
.mattrbld/schemas/page.json Normal file
View File

@ -0,0 +1,138 @@
{
"fields": [
{
"type": "text",
"default": null,
"icon": "text-input",
"key": "title",
"label": "Title",
"localised": false,
"options": {
"wrapping": true,
"multiline": false
},
"tab": "data",
"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": "image",
"default": null,
"icon": "image",
"key": "hero",
"label": "Hero image",
"options": {
"resolutionHint": "",
"removable": true,
"simple": false
},
"tab": "data",
"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",
"strike"
],
"formatOptions": [
"allowQuoteFooters",
"allowNestedLists",
"allowImageCaptions"
],
"inputRuleOptions": [
"autoquotes",
"dashes",
"ellipsis",
"noDoubleCaps",
"noDoubleSpace"
],
"minHeading": 2,
"maxHeading": 4,
"codeLangs": [
"html",
"css",
"javascript",
"markdown"
],
"allowRaw": false,
"urlTemplate": "/:title/",
"urlSuffix": "",
"linkOptions": [
"allowExternal",
"allowInternal"
]
},
"tab": "data",
"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": "data",
"groupAs": null
}
]
}

0
src/images/.gitkeep Normal file
View File

BIN
src/images/dscf-3866.JPG Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 581 KiB

61
src/index.md Normal file
View File

@ -0,0 +1,61 @@
---
title: This is my home page
hero:
src: /src/images/dscf-3866.JPG
alt: chickadee
title: null
___mb_schema: /.mattrbld/schemas/page.json
---
## Heres an h2
This is a paragraph.
This is another paragraph. It might be a bit longer.
- Heres a list.
- Its nice, the editor automatically turns dashes into lists
And I can double-enter to get out of the list.
### Heres an h3
Similarly, the editor understands markdown notation for headings. Thats really handy. I also like that I can prevent editors from creating h1s (or h5/h6, who needs those).
#### Lets do some formatting
*Italics.* **Bold!** ***Bold and italic.*** Theres even ~~strikethrough~~.
Inline `code blocks` work as well, though they dont pick up on markdown formatting.
> Blockquotes work like this.
Lets add a link. Heres my [website](https://leecat.art). They let you choose internal vs. external. Annoyingly, in the rich text editor links are only distinguishable via color, so thats a bit of an accessibility fail.
## Lets do more with lists
1. Heres an ordered list
1. it has a nested ordered list inside of it!
2. How fancy.
2. You can of course tab and shift+tab to change your list level.
---
Weve got some lovely horizontal rules as well.
## Markdown attrs plugin
Now, lets see if our markdown attributes feature works. Heres my [website again](https://leecat.art){rel=”external”}. I suspect the smart quotes will cause issues! So that may not work.
## Images
![chickadee! wahoo!](/src/images/dscf-3866.JPG)
Weve added an image above. I tried to add alt text, but Im not sure that Eleventy will pick up on that.
Ok, lets push this and see what we get.