Update content through Mattrbld
This commit is contained in:
parent
b7ba078549
commit
fd18ee80b9
@ -5,7 +5,8 @@
|
||||
"disablePreview": false,
|
||||
"draftByDefault": false,
|
||||
"schemas": [
|
||||
"/.mattrbld/schemas/navigation.json"
|
||||
"/.mattrbld/schemas/navigation.json",
|
||||
"/.mattrbld/schemas/site-settings.json"
|
||||
],
|
||||
"linkable": false,
|
||||
"maxSize": null,
|
||||
|
@ -51,6 +51,17 @@
|
||||
"target": null,
|
||||
"label": "Site Settings"
|
||||
},
|
||||
{
|
||||
"separator": true,
|
||||
"target": {
|
||||
"name": "Edit Content",
|
||||
"params": {
|
||||
"collection": "site-data.json",
|
||||
"path": "/src/_data/site.json"
|
||||
}
|
||||
},
|
||||
"label": "Meta"
|
||||
},
|
||||
{
|
||||
"separator": true,
|
||||
"target": {
|
||||
|
188
.mattrbld/schemas/site-settings.json
Normal file
188
.mattrbld/schemas/site-settings.json
Normal file
@ -0,0 +1,188 @@
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"type": "text",
|
||||
"default": null,
|
||||
"icon": "text-input",
|
||||
"key": "title",
|
||||
"label": "Title",
|
||||
"localised": false,
|
||||
"options": {
|
||||
"wrapping": true,
|
||||
"multiline": false
|
||||
},
|
||||
"tab": "Site Settings",
|
||||
"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": "link",
|
||||
"default": null,
|
||||
"icon": "link",
|
||||
"key": "url",
|
||||
"label": "Url",
|
||||
"localised": false,
|
||||
"options": {
|
||||
"type": "both",
|
||||
"byFilePath": false,
|
||||
"urlSuffix": "/",
|
||||
"urlTemplate": ""
|
||||
},
|
||||
"tab": "Site Settings",
|
||||
"validation": {
|
||||
"required": false
|
||||
},
|
||||
"value": null,
|
||||
"version": 1,
|
||||
"visibility": {
|
||||
"hidden": false,
|
||||
"showByValue": {
|
||||
"field": null
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "rich text",
|
||||
"default": null,
|
||||
"icon": "text",
|
||||
"key": "description",
|
||||
"label": "Description",
|
||||
"localised": false,
|
||||
"options": {
|
||||
"outputFormat": "html",
|
||||
"blockFormats": [
|
||||
"blockquote",
|
||||
"heading",
|
||||
"hr",
|
||||
"orderedList",
|
||||
"unorderedList",
|
||||
"image"
|
||||
],
|
||||
"inlineFormats": [
|
||||
"em",
|
||||
"strong",
|
||||
"link"
|
||||
],
|
||||
"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": "Site Settings",
|
||||
"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": "image",
|
||||
"default": null,
|
||||
"icon": "image",
|
||||
"key": "favicon",
|
||||
"label": "Favicon",
|
||||
"options": {
|
||||
"resolutionHint": "",
|
||||
"removable": false,
|
||||
"simple": false
|
||||
},
|
||||
"tab": "Site Settings",
|
||||
"validation": {
|
||||
"max": null,
|
||||
"required": false,
|
||||
"unit": "filesize (MB)"
|
||||
},
|
||||
"value": null,
|
||||
"version": 1,
|
||||
"visibility": {
|
||||
"hidden": false,
|
||||
"showByValue": {
|
||||
"field": null
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "image",
|
||||
"default": null,
|
||||
"icon": "image",
|
||||
"key": "image",
|
||||
"label": "Image",
|
||||
"options": {
|
||||
"resolutionHint": "",
|
||||
"removable": true,
|
||||
"simple": false
|
||||
},
|
||||
"tab": "Site Settings",
|
||||
"validation": {
|
||||
"max": null,
|
||||
"required": false,
|
||||
"unit": "filesize (MB)"
|
||||
},
|
||||
"value": null,
|
||||
"version": 1,
|
||||
"visibility": {
|
||||
"hidden": false,
|
||||
"showByValue": {
|
||||
"field": null
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"tabs": [
|
||||
{
|
||||
"label": "Site Settings",
|
||||
"groupAs": null
|
||||
}
|
||||
]
|
||||
}
|
@ -1,7 +1,8 @@
|
||||
{
|
||||
"title": "amy pickles",
|
||||
"url": "https://amypickles.co.uk",
|
||||
"description": "",
|
||||
"description": null,
|
||||
"favicon": "/images/uploads/favicon.png",
|
||||
"image": ""
|
||||
}
|
||||
"image": null,
|
||||
"___mb_schema": "/.mattrbld/schemas/site-settings.json"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user