mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-20 07:46:52 +00:00
Remove support for logo in frontmatter (#29177)
This commit is contained in:
parent
b9548e68aa
commit
2a74c56942
@ -3,11 +3,7 @@
|
|||||||
{% assign percentage = 100.0 | times: active_installations | divided_by: site.data.analytics_data.reports_integrations | round: 1 %}
|
{% assign percentage = 100.0 | times: active_installations | divided_by: site.data.analytics_data.reports_integrations | round: 1 %}
|
||||||
<section class="aside-module grid__item one-whole lap-one-half">
|
<section class="aside-module grid__item one-whole lap-one-half">
|
||||||
<div class='brand-logo-container section'>
|
<div class='brand-logo-container section'>
|
||||||
{%- if page.logo -%}
|
|
||||||
<img src='/images/supported_brands/{{ page.logo }}' />
|
|
||||||
{%- else -%}
|
|
||||||
<img src='https://brands.home-assistant.io/{% if page.ha_brand %}brands{% else %}_{% endif %}/{{ domain }}/logo.png' srcset='https://brands.home-assistant.io/{% if page.ha_brand %}brands{% else %}_{% endif %}/{{ page.ha_domain }}/logo@2x.png 2x' />
|
<img src='https://brands.home-assistant.io/{% if page.ha_brand %}brands{% else %}_{% endif %}/{{ domain }}/logo.png' srcset='https://brands.home-assistant.io/{% if page.ha_brand %}brands{% else %}_{% endif %}/{{ page.ha_domain }}/logo@2x.png 2x' />
|
||||||
{%- endif -%}
|
|
||||||
|
|
||||||
{%- if page.ha_config_flow and domain -%}
|
{%- if page.ha_config_flow and domain -%}
|
||||||
{% my config_flow_start badge domain=domain %}
|
{% my config_flow_start badge domain=domain %}
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: Gogogate2 and ismartgate
|
title: Gogogate2 and ismartgate
|
||||||
description: Instructions on how to integrate Gogogate2 and iSmartGate enabled garage door covers into Home Assistant.
|
description: Instructions on how to integrate Gogogate2 and iSmartGate enabled garage door covers into Home Assistant.
|
||||||
logo: gogogate2.png
|
|
||||||
ha_category:
|
ha_category:
|
||||||
- Cover
|
- Cover
|
||||||
ha_release: 0.67
|
ha_release: 0.67
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: LIFX Cloud
|
title: LIFX Cloud
|
||||||
description: Instructions on using native LIFX scenes with Home Assistant.
|
description: Instructions on using native LIFX scenes with Home Assistant.
|
||||||
logo: lifx.png
|
|
||||||
ha_category:
|
ha_category:
|
||||||
- Scene
|
- Scene
|
||||||
ha_iot_class: Cloud Push
|
ha_iot_class: Cloud Push
|
||||||
|
@ -3,7 +3,6 @@ title: NZBGet
|
|||||||
description: Instructions on how to integrate NZBGet within Home Assistant.
|
description: Instructions on how to integrate NZBGet within Home Assistant.
|
||||||
ha_category:
|
ha_category:
|
||||||
- Downloading
|
- Downloading
|
||||||
logo: nzbget.png
|
|
||||||
ha_iot_class: Local Polling
|
ha_iot_class: Local Polling
|
||||||
ha_release: 0.17
|
ha_release: 0.17
|
||||||
ha_config_flow: true
|
ha_config_flow: true
|
||||||
@ -77,5 +76,5 @@ Available services:
|
|||||||
### Service `nzbget/set_speed`
|
### Service `nzbget/set_speed`
|
||||||
|
|
||||||
| Service data attribute | Optional | Description |
|
| Service data attribute | Optional | Description |
|
||||||
|------------------------|----------|-------------------------------------------------------------------------------------------------|
|
| ---------------------- | -------- | ----------------------------------------------------------------------------------------------- |
|
||||||
| `speed` | yes | Sets the download speed limit, specified in Kb/s. 0 disables the speed limit. Defaults to 1000. |
|
| `speed` | yes | Sets the download speed limit, specified in Kb/s. 0 disables the speed limit. Defaults to 1000. |
|
||||||
|
@ -160,11 +160,7 @@ allComponents.pop(); // remove placeholder element at the end
|
|||||||
var data = {
|
var data = {
|
||||||
components: [],
|
components: [],
|
||||||
image: function () {
|
image: function () {
|
||||||
if (this.logo === '') {
|
|
||||||
return `<img src="https://brands.home-assistant.io/${this.ha_brand ? "brands": "_"}/${this.domain}/logo.png" srcset="https://brands.home-assistant.io/${this.ha_brand ? "brands ": "_"}/${this.domain}/logo@2x.png 2x" loading="lazy">`;
|
return `<img src="https://brands.home-assistant.io/${this.ha_brand ? "brands": "_"}/${this.domain}/logo.png" srcset="https://brands.home-assistant.io/${this.ha_brand ? "brands ": "_"}/${this.domain}/logo@2x.png 2x" loading="lazy">`;
|
||||||
} else {
|
|
||||||
return '<img data-src="/images/supported_brands/' + this.logo + '" loading="lazy">';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user