Closed vanillaHafer closed 1 year ago
Currently you are unable to nest custom pages from a theme.
Add the ability to add parent key to the custom_pages.
parent
theme.custom_pages = [ {name: "homepage", title: "Homepage", view_template: "homepage"}, {name: "nested_page", title: "Nested Page", view_template: "show", parent: "homepage"}, {name: "double_nested_page", title: "Double Nested Page", view_template: "show", parent: "nested_page"}, ]
If a parent is requested before a page is generated, it will not be able to be linked, however it will not blow up.
Context
Currently you are unable to nest custom pages from a theme.
Changes proposed in this pull request
Add the ability to add
parent
key to the custom_pages.Guidance to review
If a parent is requested before a page is generated, it will not be able to be linked, however it will not blow up.