mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 23:06:58 +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 %}
|
||||
<section class="aside-module grid__item one-whole lap-one-half">
|
||||
<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' />
|
||||
{%- endif -%}
|
||||
|
||||
{%- if page.ha_config_flow and domain -%}
|
||||
{% my config_flow_start badge domain=domain %}
|
||||
|
@ -1,7 +1,6 @@
|
||||
---
|
||||
title: Gogogate2 and ismartgate
|
||||
description: Instructions on how to integrate Gogogate2 and iSmartGate enabled garage door covers into Home Assistant.
|
||||
logo: gogogate2.png
|
||||
ha_category:
|
||||
- Cover
|
||||
ha_release: 0.67
|
||||
|
@ -1,7 +1,6 @@
|
||||
---
|
||||
title: LIFX Cloud
|
||||
description: Instructions on using native LIFX scenes with Home Assistant.
|
||||
logo: lifx.png
|
||||
ha_category:
|
||||
- Scene
|
||||
ha_iot_class: Cloud Push
|
||||
|
@ -3,7 +3,6 @@ title: NZBGet
|
||||
description: Instructions on how to integrate NZBGet within Home Assistant.
|
||||
ha_category:
|
||||
- Downloading
|
||||
logo: nzbget.png
|
||||
ha_iot_class: Local Polling
|
||||
ha_release: 0.17
|
||||
ha_config_flow: true
|
||||
@ -76,6 +75,6 @@ Available services:
|
||||
|
||||
### Service `nzbget/set_speed`
|
||||
|
||||
| Service data attribute | Optional | Description |
|
||||
|------------------------|----------|-------------------------------------------------------------------------------------------------|
|
||||
| `speed` | yes | Sets the download speed limit, specified in Kb/s. 0 disables the speed limit. Defaults to 1000. |
|
||||
| Service data attribute | Optional | Description |
|
||||
| ---------------------- | -------- | ----------------------------------------------------------------------------------------------- |
|
||||
| `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 = {
|
||||
components: [],
|
||||
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">`;
|
||||
} else {
|
||||
return '<img data-src="/images/supported_brands/' + this.logo + '" 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">`;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user