From 5fcd45748c2e8a2d5f6e9967bcd6463b3902d983 Mon Sep 17 00:00:00 2001 From: Christophe Dervieux Date: Mon, 6 Oct 2025 17:24:51 +0200 Subject: [PATCH 1/7] sidebar.logo is now normalized as an object with light and dark properties So `sidebar.logo` is never undefined - it may have light or dark undefined, but the object itself exists. --- src/resources/projects/website/templates/sidebar.ejs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/resources/projects/website/templates/sidebar.ejs b/src/resources/projects/website/templates/sidebar.ejs index 6b410b5230c..2679b2ce7cd 100644 --- a/src/resources/projects/website/templates/sidebar.ejs +++ b/src/resources/projects/website/templates/sidebar.ejs @@ -19,11 +19,13 @@ // may be displayed in different locations, so this will determine where to display the tools // "logo", "title", "search", "fallthrough" + let hasLogo = sidebar.logo.light || sidebar.logo.dark; + let toolsLocation; // Under the title if that will be displayed if (sidebar.title && !navbar) { toolsLocation = "title"; - } else if (sidebar.logo) { + } else if (sidebar.logo.light || sidebar.logo.dark) { toolsLocation = "logo"; } else if (sidebar.search && sidebar.search !== "overlay") { toolsLocation = "search"; @@ -32,9 +34,9 @@ } %> - <% if (sidebar.logo || (sidebar.title && !navbar)) { %> -