forked from blakadder/templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bulb-type.html
23 lines (21 loc) · 829 Bytes
/
bulb-type.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
layout: default
title: Light Bulbs by Type
navigation: 20
---
<h2>{{ page.title }}</h2>
<!-- ###################################################################### -->
{% assign category = site.templates | where: "category", "bulb" %}
{% assign type_group = category | group_by: 'type' %}
{% assign type_grouped = type_group | sort: "name" %}
{% for group in type_grouped %}
<h3>{{ group.name | replace: "RGBCCT", "RGB + Color Temperature" | replace: "Dimmable", "Dimmable White" | replace: "CCT", "Color Temperature" | replace: "RGBW", "RGB + White" }}</h3>
<table id="{{ group.name }}" width="80%">
<tbody>
{% assign grouptitlesorted = group.items | sort_natural: 'title' %}
{% for template in grouptitlesorted %}
{% include tablerow_standard.html %}
{% endfor %}
</tbody>
</table>
{% endfor %}