File tree 2 files changed +12
-5
lines changed
2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -372,6 +372,10 @@ p.note {
372
372
@media only screen and (min-width : $desk-start ) {
373
373
#components-page {
374
374
.filter-button-group {
375
+ .featured {
376
+ margin : 12px 0 ;
377
+ }
378
+
375
379
.btn {
376
380
display : block ;
377
381
background : 0 ;
Original file line number Diff line number Diff line change 13
13
regenerate: true
14
14
---
15
15
16
+ {% assign count = site.components | size %}
17
+ {% assign nocat = site.components | where: 'ha_category', null | size %}
18
+ {% assign tot = count | minus: nocat %}
19
+ {% assign components = site.components | sort: 'title' %}
20
+ {% assign categories = components | sort: 'ha_category' | map: 'ha_category' | uniq %}
21
+
16
22
< p class ='note '>
17
23
Support for these components is provided by the Home Assistant community.
18
24
</ p >
19
25
20
- {% assign components = site.components | sort: 'title' %}
21
- {% assign categories = components | sort: 'ha_category' | map: 'ha_category' | uniq %}
22
-
23
26
< div class ="grid ">
24
27
< div class ="grid__item one-sixth lap-one-whole palm-one-whole ">
25
28
26
29
< div class ="filter-button-group ">
27
- < a href ='#all ' class ="btn "> All</ a >
28
- < a href ='#featured ' class ="btn "> Featured</ a >
30
+ < a href ='#all ' class ="btn "> All ({{tot}}) </ a >
31
+ < a href ='#featured ' class ="btn featured "> Featured</ a >
29
32
30
33
{% for category in categories %}
31
34
{% if category and category != 'Other' %}
You can’t perform that action at this time.
0 commit comments