From 514ecd4f2e091e8aeded283332c8c9f3449a69b1 Mon Sep 17 00:00:00 2001 From: francesco-cattoglio Date: Fri, 28 Feb 2025 12:44:33 +0100 Subject: [PATCH 1/2] shell.handlebars: remove footer when it is exactly an empty string With this patch, if the user specifies the footer for the shell as exactly the empty string, then the whole footer is removed from the page. Leaving the footer as null or undefined still shows the "Build with SQLPage" default footer. --- sqlpage/templates/shell.handlebars | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/sqlpage/templates/shell.handlebars b/sqlpage/templates/shell.handlebars index 0681c3b5..3526f76a 100644 --- a/sqlpage/templates/shell.handlebars +++ b/sqlpage/templates/shell.handlebars @@ -214,16 +214,18 @@ {{~#each_row~}}{{~/each_row~}} - + {{#unless (eq footer '')}} + + {{/unless}} - \ No newline at end of file + From ff14925173c550e13c8678e4b188e2b4b5bff379 Mon Sep 17 00:00:00 2001 From: francesco-cattoglio Date: Fri, 28 Feb 2025 12:49:11 +0100 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 60b00f94..48c802ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ - `markdown_allow_dangerous_html`: allow the usage of html in markdown (default: false) - `markdown_allow_dangerous_protocol`: allow the usage of custom protocols in markdown (default: false) - see [configuration.md](./configuration.md) for more details. +- In the shell component, setting the `footer` parameter to the empty string (`''`) will now completely hide the footer, instead of showing the default one ## 0.33.1 (2025-02-25)