Correctly check for sidebar.logo in EJS template #13507
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
91be50e to
9c645b4
Compare
|
While trying to add some tests, I am now wondering how we are supposed to pass logo when we do hybrid navigation: https://quarto.org/docs/websites/website-navigation.html#hybrid-navigation
🤔 |
|
As discussed, we are only resolving the logos in quarto-cli/src/project/types/website/website-shared.ts Lines 174 to 208 in 4262320 |
|
Thanks. That is explaining it ! Surely not clear from the doc ! I think I'll handle it in another issue |
…rties So `sidebar.logo` is never undefined - it may have light or dark undefined, but the object itself exists.
…rk properties" This reverts commit 5fcd457.
9c645b4 to
526d074
Compare
|
setting |
sidebar.logo is now normalized as an object with light and dark properties
So
sidebar.logois never undefined - it may have light or dark undefined, but the object itself exists.fix #13506