mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 03:48:23 +00:00
This commit extracts the content of the `HomeLogo` to a standalone component. This enables us to utilize the `home-logo-contents` plugin outlet to render an alternative version of the logo using the new component to reuse the rendering logic, but using alternative properties. For example: ```js const logoSmallUrl = settings .theme_uploads["theme-alternative-logo-small"]; const logoUrl = settings.theme_uploads["theme-alternative-logo"]; const mobileLogoUrl = settings .theme_uploads["theme-alternative-logo"]; api.renderInOutlet("home-logo-contents", <template> <HomeLogoContents @logoSmallUrl={{logoSmallUrl}} @logoUrl={{logoUrl}} @minimized={{@outletArgs.minimized}} @mobileLogoUrl={{mobileLogoUrl}} @showMobileLogo={{@outletArgs.showMobileLogo}} @title={{@outletArgs.title}} /> </template>); ``