Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct Alto and Dawn double-printing @site.logo <img> when @custom.white_logo_for_dark_mode is set #373

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/alto/default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
<div class="gh-head-brand-wrapper">
<a class="gh-head-logo" href="{{@site.url}}">
{{#if @site.logo}}
<img src="{{@site.logo}}" alt="{{@site.title}}">
{{#if @custom.white_logo_for_dark_mode}}
<img src="{{img_url @custom.white_logo_for_dark_mode}}" alt="{{@site.title}}">
{{else}}
<img src="{{@site.logo}}" alt="{{@site.title}}">
{{/if}}
{{else}}
{{@site.title}}
Expand Down
3 changes: 2 additions & 1 deletion packages/dawn/default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
<div class="gh-head-brand-wrapper">
<a class="gh-head-logo" href="{{@site.url}}">
{{#if @site.logo}}
<img src="{{@site.logo}}" alt="{{@site.title}}">
{{#if @custom.white_logo_for_dark_mode}}
<img src="{{img_url @custom.white_logo_for_dark_mode}}" alt="{{@site.title}}">
{{else}}
<img src="{{@site.logo}}" alt="{{@site.title}}">
{{/if}}
{{else}}
{{@site.title}}
Expand Down