diff --git a/.mattrbld/collections/pages.json b/.mattrbld/collections/pages.json new file mode 100644 index 0000000..84c63b6 --- /dev/null +++ b/.mattrbld/collections/pages.json @@ -0,0 +1,21 @@ +{ + "allowedTypes": [], + "defaultFilename": null, + "dir": "/src/pages", + "disableComments": false, + "disablePreview": false, + "draftByDefault": false, + "linkable": false, + "maxSize": null, + "permissions": { + "everybody": [ + "everything" + ] + }, + "rawEntityNames": false, + "schemas": [ + "/.mattrbld/schemas/page.json" + ], + "type": "md", + "urlTemplate": "" +} \ No newline at end of file diff --git a/.mattrbld/config.json b/.mattrbld/config.json new file mode 100644 index 0000000..c36b92a --- /dev/null +++ b/.mattrbld/config.json @@ -0,0 +1,138 @@ +{ + "autoquotes": null, + "brandColors": [], + "corsProxy": "/corsprox", + "name": "mattrbld", + "sidebar": [ + { + "icon": "error", + "label": "Help", + "target": { + "name": "Project.Documentation", + "params": { + "path": "/README.md" + } + } + }, + { + "label": "Dashboard", + "icon": "grid", + "target": { + "name": "Project" + }, + "protected": true + }, + { + "icon": "text", + "label": "Pages", + "target": { + "name": "Project.Collection", + "params": { + "path": "/.mattrbld/collections/pages.json" + } + } + }, + { + "label": "Media Library", + "icon": "image-stack", + "target": { + "name": "Project.MediaLibrary" + }, + "protected": true + }, + { + "label": "Settings", + "icon": "settings", + "target": { + "name": "Project.Settings" + }, + "onlyPrivileged": true, + "protected": true + } + ], + "slugifyOptions": { + "customReplacements": [], + "lowercase": true, + "decamelize": true, + "preserveLeadingUnderscore": true, + "preserveTrailingDash": false, + "preserveCharacters": [], + "separator": "-", + "transliterate": true + }, + "customRoles": [], + "draftsDir": null, + "previewUrl": null, + "languages": [], + "media": { + "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/img", + "maxSize": null, + "outputPath": "/img", + "permissions": { + "everybody": [ + "everything" + ] + } + } +} \ No newline at end of file diff --git a/.mattrbld/schemas/page.json b/.mattrbld/schemas/page.json new file mode 100644 index 0000000..fc891d7 --- /dev/null +++ b/.mattrbld/schemas/page.json @@ -0,0 +1,285 @@ +{ + "fields": [ + { + "type": "text", + "default": null, + "icon": "text-input", + "key": "title", + "label": "Title", + "localised": false, + "options": { + "wrapping": true, + "multiline": false + }, + "tab": "Page body", + "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": "date", + "default": null, + "icon": "calendar", + "key": "date", + "label": "Last updated", + "options": { + "outputFormat": "iso", + "removable": false, + "showTime": false, + "defaultToNow": true, + "useAsUpdatedAt": true, + "only": null + }, + "tab": "Page body", + "validation": { + "max": null, + "min": null, + "required": true, + "unit": "date", + "isString": true + }, + "value": null, + "version": 2, + "visibility": { + "hidden": false, + "showByValue": { + "field": null + } + } + }, + { + "type": "text", + "default": null, + "icon": "text-input", + "key": "author", + "label": "Author", + "localised": false, + "options": { + "wrapping": true, + "multiline": false + }, + "tab": "Page body", + "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": "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": "", + "urlSuffix": "", + "linkOptions": [ + "allowExternal", + "allowInternal" + ] + }, + "tab": "Page body", + "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": "text", + "default": null, + "icon": "text-input", + "key": "key", + "label": "Name in nav", + "localised": false, + "options": { + "wrapping": true, + "multiline": false + }, + "tab": "Navigation", + "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": "number", + "default": null, + "icon": "number", + "key": "order", + "label": "Order in nav", + "localised": false, + "tab": "Navigation", + "validation": { + "max": null, + "min": null, + "required": false + }, + "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": "Hero image", + "validation": { + "max": null, + "required": false, + "unit": "filesize (MB)" + }, + "value": null, + "version": 1, + "visibility": { + "hidden": false, + "showByValue": { + "field": null + } + } + }, + { + "type": "text", + "default": null, + "icon": "text-input", + "key": "text", + "label": "Unformatted Text", + "localised": false, + "options": { + "wrapping": true, + "multiline": false + }, + "tab": "Hero image", + "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": "Page body", + "groupAs": null + }, + { + "label": "Navigation", + "groupAs": "eleventyNavigation" + } + ] +} \ No newline at end of file diff --git a/.mattrbld/users/lee-cattarin-gmail-com.json b/.mattrbld/users/lee-cattarin-gmail-com.json new file mode 100644 index 0000000..5e9da11 --- /dev/null +++ b/.mattrbld/users/lee-cattarin-gmail-com.json @@ -0,0 +1,6 @@ +{ + "email": "lee.cattarin@gmail.com", + "id": "lee-cattarin-gmail-com", + "name": "Lee Cattarin", + "role": "owner" +} \ No newline at end of file diff --git a/src/img/.gitkeep b/src/img/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/src/pages/.gitkeep b/src/pages/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/src/pages/index.md b/src/pages/index.md new file mode 100644 index 0000000..459a584 --- /dev/null +++ b/src/pages/index.md @@ -0,0 +1,12 @@ +--- +title: This is a test +date: '2026-09-15' +author: Lee +eleventyNavigation: + key: home + order: 1 +image: null +text: null +___mb_schema: /.mattrbld/schemas/page.json +--- +Hello and welcome to my cool website.