diff --git a/src/resources/projects/website/templates/sidebar.ejs b/src/resources/projects/website/templates/sidebar.ejs index 6b410b5230..2679b2ce7c 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)) { %> -