generated from inherentlee/11ty
nav setup
This commit is contained in:
1 parent
baa7351763
commit
1dbb965630
5 files changed
+146
No files matched your search
@@ -100,12 +100,128 @@
|
|||||||
"field": null
|
"field": null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "text",
|
||||||
|
"default": null,
|
||||||
|
"icon": "text-input",
|
||||||
|
"key": "key",
|
||||||
|
"label": "Key",
|
||||||
|
"localised": false,
|
||||||
|
"options": {
|
||||||
|
"wrapping": true,
|
||||||
|
"multiline": false
|
||||||
|
},
|
||||||
|
"tab": "Navigation",
|
||||||
|
"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": "title",
|
||||||
|
"label": "Title (will default to key if not set)",
|
||||||
|
"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": "text",
|
||||||
|
"default": null,
|
||||||
|
"icon": "text-input",
|
||||||
|
"key": "parent",
|
||||||
|
"label": "Parent key (for nested menus)",
|
||||||
|
"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 (1, 2, 3...)",
|
||||||
|
"localised": false,
|
||||||
|
"tab": "Navigation",
|
||||||
|
"validation": {
|
||||||
|
"max": null,
|
||||||
|
"min": "",
|
||||||
|
"required": false
|
||||||
|
},
|
||||||
|
"value": null,
|
||||||
|
"version": 1,
|
||||||
|
"visibility": {
|
||||||
|
"hidden": false,
|
||||||
|
"showByValue": {
|
||||||
|
"field": null
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"tabs": [
|
"tabs": [
|
||||||
{
|
{
|
||||||
"label": "Content",
|
"label": "Content",
|
||||||
"groupAs": null
|
"groupAs": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Navigation",
|
||||||
|
"groupAs": "eleventyNavigation"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
title: About my cat
|
||||||
|
eleventyNavigation:
|
||||||
|
key: about my cat
|
||||||
|
title: null
|
||||||
|
parent: about
|
||||||
|
order: null
|
||||||
|
___mb_schema: /.mattrbld/schemas/page.json
|
||||||
|
---
|
||||||
|
I love my cat
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
title: About me
|
||||||
|
eleventyNavigation:
|
||||||
|
key: about
|
||||||
|
title: null
|
||||||
|
parent: null
|
||||||
|
order: 3
|
||||||
|
___mb_schema: /.mattrbld/schemas/page.json
|
||||||
|
---
|
||||||
|
Here’s some body text
|
||||||
@@ -1,5 +1,10 @@
|
|||||||
---
|
---
|
||||||
title: Contact
|
title: Contact
|
||||||
___mb_schema: /.mattrbld/schemas/page.json
|
___mb_schema: /.mattrbld/schemas/page.json
|
||||||
|
eleventyNavigation:
|
||||||
|
key: contact
|
||||||
|
title: ''
|
||||||
|
parent: null
|
||||||
|
order: 2
|
||||||
---
|
---
|
||||||
Here’s how to contact me.
|
Here’s how to contact me.
|
||||||
@@ -2,5 +2,10 @@
|
|||||||
permalink: index.html
|
permalink: index.html
|
||||||
title: Home
|
title: Home
|
||||||
___mb_schema: /.mattrbld/schemas/page.json
|
___mb_schema: /.mattrbld/schemas/page.json
|
||||||
|
eleventyNavigation:
|
||||||
|
key: home
|
||||||
|
title: null
|
||||||
|
parent: null
|
||||||
|
order: 1
|
||||||
---
|
---
|
||||||
Hello! Welcome to my website.
|
Hello! Welcome to my website.
|
||||||
Reference in new issue
Block a user