Skip to content

Commit 0031b2f

Browse files
committed
Revert "sidebar.logo is now normalized as an object with light and dark properties"
This reverts commit 5fcd457.
1 parent a4f4cc3 commit 0031b2f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/resources/projects/website/templates/sidebar.ejs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,11 @@
1919
// may be displayed in different locations, so this will determine where to display the tools
2020
// "logo", "title", "search", "fallthrough"
2121
22-
let hasLogo = sidebar.logo.light || sidebar.logo.dark;
23-
2422
let toolsLocation;
2523
// Under the title if that will be displayed
2624
if (sidebar.title && !navbar) {
2725
toolsLocation = "title";
28-
} else if (sidebar.logo.light || sidebar.logo.dark) {
26+
} else if (sidebar.logo) {
2927
toolsLocation = "logo";
3028
} else if (sidebar.search && sidebar.search !== "overlay") {
3129
toolsLocation = "search";
@@ -34,9 +32,9 @@
3432
}
3533
%>
3634
37-
<% if (hasLogo || (sidebar.title && !navbar)) { %>
38-
<div class="pt-lg-2 mt-2 <%= alignCss %> sidebar-header<%= hasLogo && sidebar.title ? ' sidebar-header-stacked' : '' %>">
39-
<% if (hasLogo) { %>
35+
<% if (sidebar.logo || (sidebar.title && !navbar)) { %>
36+
<div class="pt-lg-2 mt-2 <%= alignCss %> sidebar-header<%= sidebar.logo && sidebar.title ? ' sidebar-header-stacked' : '' %>">
37+
<% if (sidebar.logo) { %>
4038
<a href="<%- sidebar['logo-href'] || '/index.html' %>" class="sidebar-logo-link">
4139
<% if (sidebar.logo.light) { %>
4240
<img src="<%- sidebar.logo.light.path %>" alt="<%- sidebar.logo.light.alt || '' %>" class="sidebar-logo light-content py-0 d-lg-inline d-none"/>

0 commit comments

Comments
 (0)