From 5a7de270dcb8538d0578dd1841aa4ed33075b34e Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sun, 25 Oct 2015 13:47:18 -0700 Subject: [PATCH] Improve component filter experience --- source/components/index.html | 59 +++++++++++++++++++++++------------- 1 file changed, 38 insertions(+), 21 deletions(-) diff --git a/source/components/index.html b/source/components/index.html index 0d9c8270712..589df49ef98 100644 --- a/source/components/index.html +++ b/source/components/index.html @@ -19,8 +19,8 @@ Support for these components is provided by the Home Assistant community. {% assign categories = components | sort: 'ha_category' | map: 'ha_category' %}
- All - Featured + All + Featured {% comment %} Jekyll 2.5.2 does not support the uniq filter :/ {% endcomment %} {% assign category_printed = '' %} @@ -28,13 +28,13 @@ Support for these components is provided by the Home Assistant community. {% for category in categories %} {% if category and category != 'Other' %} {% unless category_printed contains category %} - {{ category }} + {{ category }} {% assign category_printed = category_printed | append: ',' | append: category %} {% endunless %} {% endif %} {% endfor %} - Other + Other
@@ -67,9 +67,31 @@ Support for these components is provided by the Home Assistant community.