diff --git a/CHANGELOG.md b/CHANGELOG.md index 48cf1d30..1bb21547 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - New columns component: `columns`. Useful to display a comparison between items, or large key figures to an user. - New foldable component: `foldable`. Useful to display a list of items that can be expanded individually. - CLI arguments parsing: SQLPage now processes command-line arguments to set the web root and configuration directory. It also allows getting the currently installed version of SQLPage with `sqlpage --version` without starting the server. + - New `navbar_title` property in the [shell](https://sql.datapage.app/documentation.sql?component=shell#component) component to set the title of the top navigation bar. This allows to display a different title in the top menu than the one that appears in the tab of the browser. This can also be set to the empty string to hide the title in the top menu, in case you want to display only a logo for instance. ## 0.28.0 (2024-08-31) - Chart component: fix the labels of pie charts displaying too many decimal places. diff --git a/examples/official-site/sqlpage/migrations/01_documentation.sql b/examples/official-site/sqlpage/migrations/01_documentation.sql index b51b9bea..31a225c6 100644 --- a/examples/official-site/sqlpage/migrations/01_documentation.sql +++ b/examples/official-site/sqlpage/migrations/01_documentation.sql @@ -945,7 +945,8 @@ INSERT INTO parameter(component, name, description, type, top_level, optional) S ('sidebar_theme', 'Used with sidebar property, It can be set to "dark" to exclusively set the sidebar into dark theme.', 'BOOLEAN', TRUE, TRUE), ('theme', 'Set to "dark" to use a dark theme.', 'TEXT', TRUE, TRUE), ('footer', 'Muted text to display in the footer of the page. This can be used to display a link to the terms and conditions of your application, for instance. By default, shows "Built with SQLPage". Supports links with markdown.', 'TEXT', TRUE, TRUE), - ('preview_image', 'The URL of an image to display as a link preview when the page is shared on social media', 'URL', TRUE, TRUE) + ('preview_image', 'The URL of an image to display as a link preview when the page is shared on social media', 'URL', TRUE, TRUE), + ('navbar_title', 'The title to display in the top navigation bar. Used to display a different title in the top menu than the one that appears in the tab of the browser.', 'TEXT', TRUE, TRUE) ) x; INSERT INTO example(component, description, properties) VALUES diff --git a/examples/official-site/your-first-sql-website/get_started_linux.webp b/examples/official-site/your-first-sql-website/get_started_linux.webp index 04f2b605..1e9ce0e2 100644 Binary files a/examples/official-site/your-first-sql-website/get_started_linux.webp and b/examples/official-site/your-first-sql-website/get_started_linux.webp differ diff --git a/sqlpage/templates/shell.handlebars b/sqlpage/templates/shell.handlebars index 3c17acf1..3f32aaed 100644 --- a/sqlpage/templates/shell.handlebars +++ b/sqlpage/templates/shell.handlebars @@ -165,11 +165,9 @@ {{~icon_img icon~}} {{/if}} - {{#if title}} -

- {{title}} -

- {{/if}} +

+ {{default navbar_title title}} +