forked from blakadder/templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
46 lines (46 loc) · 2.41 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
layout: page
title: Tasmota Device Templates Repository
---
<h3>Tasmota Device Templates Repository</h3>
<h3>{% assign counter = 0 %}{% for item in site.templates %}{% assign counter=counter | plus:1 %}{% endfor %}{{ counter }} devices submitted by the community</h3>
<div style="text-align:right;font-size:0.8em;vertical-align: sub;" class="float-right">See <a href="https://www.worldstandards.eu/electricity/spread-plug-types-map/" target="_blank">world map of plugs</a> for more information.</div>
<h4>Devices by electrical standard:</h4>
{% assign category = site.templates | where: "category", "plug" %}
{% assign standard_group = category | map: 'standard' | join: ',' | split: ',' | uniq | sort_natural %}
{% for std in standard_group %}
<a class="button button-large button-grey" href="{{ std }}.html">{{ std | upcase }}</a>
{% endfor %}
<br>
{% assign category = site.templates | where: "category", "bulb" %}
{% assign standard_group = category | map: 'standard' | join: ',' | split: ',' | uniq | sort_natural %}
{% for std in standard_group %}
<a class="button button-large button-grey" href="{{ std }}.html">{{ std | upcase }}</a>
{% endfor %}
<a class="button button-large button-grey" href="all.html">ALL</a>
<p>
<h4>Devices by type:</h4>
<a class="button button-large button-grey" href="bulb.html">BULBS</a>
<a class="button button-large button-grey" href="plug.html">PLUGS</a>
<a class="button button-large button-grey" href="light.html">LIGHTS</a>
<a class="button button-large button-grey" href="switch.html">SWITCHES</a>
<a class="button button-large button-grey" href="misc.html">MISCELLANEOUS</a>
<a class="button button-large button-grey" href="unsupported.html">UNSUPPORTED</a>
<p></p>
<div><b>Due to an influx of non-ESP82xx devices we're opening submissions for Unsupported devices! </b></div>
<p>
<div>
<a class="button button-large button-grey" href="new.html">Add new template</a>
<a class="button button-large button-grey" href="new-unsupported.html">Add unsupported device</a>
</div>
<p>
<h3>Recently added devices:</h3>
<ul>
{% assign sorted = site.templates | sort: "date_added" | reverse %}
{% for template in sorted limit:10 %}
<li><a class="menu" href="{{site.baseurl}}{{ template.url }}">{{ template.title }} {{ template.type }} {% assign standard_list = template.standard %}
{% for item_standard in standard_list %}
{{ item_standard | upcase }}
{% endfor %}</a></li>
{% endfor %}
</ul>