Controllers and images

This commit is contained in:
Marc Riera Irigoyen 2022-04-30 16:22:00 +02:00
parent 7ae8c6bf06
commit 301ce44def
28 changed files with 116 additions and 17 deletions

View file

@ -18,7 +18,7 @@
<td><strong>Notes</strong></td>
<td>{{ (index .Site.Data.controllers (.Get 0)).notes }}</td>
</tr>
</table>
</table>
## Supported software (WIP)

View file

@ -34,6 +34,7 @@
</tr>
</table>
{{ with (index .Site.Data.software (.Get 0)).controllers }}
## Supported controllers
<table>
@ -42,7 +43,7 @@
<th>Support</th>
<th>Notes</th>
</tr>
{{ range (index .Site.Data.software (.Get 0)).controllers }}
{{ range . }}
<tr>
<td><a href="{{ (index $.Site.Data.controllers .model).ref }}">{{ (index $.Site.Data.controllers .model).name }}</a></td>
<td id="{{ if or .unofficial .partial }}partial{{ else }}native{{ end }}">{{ if .unofficial }}Unofficial{{ else if .partial }}Partial{{ else }}Native{{ end }}</td>
@ -50,3 +51,4 @@
</tr>
{{ end }}
</table>
{{ end }}

View file

@ -0,0 +1,23 @@
## Overview
<table>
<tr>
<td rowspan="0" id="image">{{ if (index .Site.Data.controllers (.Get 0)).image}}<img src="/images/controllers/{{ (index .Site.Data.controllers (.Get 0)).image }}"/>{{ end }}</td>
<td><strong>Name</strong></td>
<td>{{ (index .Site.Data.controllers (.Get 0)).name }}</td>
</tr>
<tr>
<td><strong>Release date</strong></td>
<td>{{ (index .Site.Data.controllers (.Get 0)).date | time.Format ":date_long" }}</td>
</tr>
<tr>
<td><strong>Serial code</strong></td>
<td>{{ (index .Site.Data.controllers (.Get 0)).code }}</td>
</tr>
<tr>
<td><strong>Notes</strong></td>
<td>{{ (index .Site.Data.controllers (.Get 0)).notes }}</td>
</tr>
</table>
## Technical details