mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Update brands URL location (#12537)
This commit is contained in:
parent
f495cff725
commit
156a92d780
@ -4,7 +4,7 @@
|
|||||||
{%- if page.logo -%}
|
{%- if page.logo -%}
|
||||||
<img src='/images/supported_brands/{{ page.logo }}' />
|
<img src='/images/supported_brands/{{ page.logo }}' />
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
<img src='https://brands.home-assistant.io/{{ page.ha_domain }}/logo.png' srcset='https://brands.home-assistant.io/{{ page.ha_domain }}/logo@2x.png 2x' />
|
<img src='https://brands.home-assistant.io/_/{{ page.ha_domain }}/logo.png' srcset='https://brands.home-assistant.io/_/{{ page.ha_domain }}/logo@2x.png 2x' />
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -144,7 +144,7 @@ allComponents.pop(); // remove placeholder element at the end
|
|||||||
components: [],
|
components: [],
|
||||||
image: function () {
|
image: function () {
|
||||||
if (this.logo === '') {
|
if (this.logo === '') {
|
||||||
return '<img src="https://brands.home-assistant.io/' + this.domain + '/logo.png" srcset="https://brands.home-assistant.io/' + this.domain + '/logo@2x.png 2x">';
|
return '<img src="https://brands.home-assistant.io/_/' + this.domain + '/logo.png" srcset="https://brands.home-assistant.io/_/' + this.domain + '/logo@2x.png 2x">';
|
||||||
} else {
|
} else {
|
||||||
return '<img data-src="/images/supported_brands/' + this.logo + '">';
|
return '<img data-src="/images/supported_brands/' + this.logo + '">';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user