diff --git a/examples/official-site/sqlpage/migrations/01_documentation.sql b/examples/official-site/sqlpage/migrations/01_documentation.sql index ccb180e40..8defcd484 100644 --- a/examples/official-site/sqlpage/migrations/01_documentation.sql +++ b/examples/official-site/sqlpage/migrations/01_documentation.sql @@ -1585,7 +1585,7 @@ You see the [page layouts demo](./examples/layouts.sql) for a live example of th ('shell', ' This example shows how to set menu items as active in the navigation, so that they are highlighted in the nav bar. -In this example you can see that two menu items are created, "Home" and "About" and the "Home" tab is marked as active. +In this example you can see that two menu items are created, "Home" and "About" and the "Home" tab is marked as active. These items are separated by a divider. ', json('[{ "component": "shell", @@ -1594,6 +1594,7 @@ In this example you can see that two menu items are created, "Home" and "About" "link": "/", "menu_item": [ {"title": "Home", "active": true}, + {"divider": true}, {"title": "About"} ] }]')), diff --git a/sqlpage/templates/shell.handlebars b/sqlpage/templates/shell.handlebars index 0e1c7a8ed..51d023aa3 100644 --- a/sqlpage/templates/shell.handlebars +++ b/sqlpage/templates/shell.handlebars @@ -1,241 +1,243 @@ - - - - - {{default title "SQLPage"}} - - {{#if manifest}} - - {{/if}} - - {{#each (to_array css)}} - {{#if this}} - - {{/if}} - {{/each}} - - {{#if font}} - {{#if (starts_with font "/")}} - - {{else}} - - - - - {{/if}} - {{/if}} - - - {{#each (to_array javascript)}} - {{#if this}} - - {{/if}} - {{/each}} - {{#each (to_array javascript_module)}} - {{#if this}} - - {{/if}} - {{/each}} - - - {{#if title}} - - {{/if}} - {{#if description}} - - - {{/if}} - {{#if preview_image}} - - - {{/if}} - - {{#if norobot}} - - {{/if}} - - {{#if refresh}} - - {{/if}} - {{#if rss}} - - {{/if}} - - {{#if social_image}} - - {{/if}} - - -{{!-- Partial for menu_items to not duplicate logic --}} -{{#*inline "menu-items"}} - - {{#if search_target}} - - {{/if}} -{{/inline}} - - -
- {{#if (or (or title (or icon image)) (or menu_item search_target))}} -
- {{#if sidebar}} - - {{else}} - -
- {{/if}} -{{/if}} -
-
- {{~#each_row~}}{{~/each_row~}} -
- - {{#unless (eq footer '')}} - - {{/unless}} -
-
- - + + + + + {{default title "SQLPage"}} + + {{#if manifest}} + + {{/if}} + + {{#each (to_array css)}} + {{#if this}} + + {{/if}} + {{/each}} + + {{#if font}} + {{#if (starts_with font "/")}} + + {{else}} + + + + + {{/if}} + {{/if}} + + + {{#each (to_array javascript)}} + {{#if this}} + + {{/if}} + {{/each}} + {{#each (to_array javascript_module)}} + {{#if this}} + + {{/if}} + {{/each}} + + + {{#if title}} + + {{/if}} + {{#if description}} + + + {{/if}} + {{#if preview_image}} + + + {{/if}} + + {{#if norobot}} + + {{/if}} + + {{#if refresh}} + + {{/if}} + {{#if rss}} + + {{/if}} + + {{#if social_image}} + + {{/if}} + + +{{!-- Partial for menu_items to not duplicate logic --}} +{{#*inline "menu-items"}} + + {{#if search_target}} + + {{/if}} +{{/inline}} + + +
+ {{#if (or (or title (or icon image)) (or menu_item search_target))}} +
+ {{#if sidebar}} + + {{else}} + +
+ {{/if}} +{{/if}} +
+
+ {{~#each_row~}}{{~/each_row~}} +
+ + {{#unless (eq footer '')}} + + {{/unless}} +
+
+ + \ No newline at end of file