File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/resources/projects/website/templates Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 19
19
// may be displayed in different locations, so this will determine where to display the tools
20
20
// "logo", "title", "search", "fallthrough"
21
21
22
+ let hasLogo = sidebar .logo .light || sidebar .logo .dark ;
23
+
22
24
let toolsLocation;
23
25
// Under the title if that will be displayed
24
26
if (sidebar .title && ! navbar) {
25
27
toolsLocation = " title" ;
26
- } else if (sidebar .logo ) {
28
+ } else if (sidebar .logo . light || sidebar . logo . dark ) {
27
29
toolsLocation = " logo" ;
28
30
} else if (sidebar .search && sidebar .search !== " overlay" ) {
29
31
toolsLocation = " search" ;
32
34
}
33
35
% >
34
36
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 ) { % >
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 ) { % >
38
40
< a href= " <%- sidebar['logo-href'] || '/index.html' %>" class = " sidebar-logo-link" >
39
41
< % if (sidebar .logo .light ) { % >
40
42
< img src= " <%- sidebar.logo.light.path %>" alt= " <%- sidebar.logo.light.alt || '' %>" class = " sidebar-logo light-content py-0 d-lg-inline d-none" / >
You can’t perform that action at this time.
0 commit comments