From d17038f4d63fccbb064b0384342f2895e54e658e Mon Sep 17 00:00:00 2001 From: Michael Compton <46600603+mjamescompton@users.noreply.github.com> Date: Fri, 1 Dec 2023 10:51:08 +0100 Subject: [PATCH] Fix missing json object for device uplink element (#705) --- website/layouts/devices/single.html | 33 +++++++++++++++++++---------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/website/layouts/devices/single.html b/website/layouts/devices/single.html index 5ba472cc5a..f5f455bd40 100644 --- a/website/layouts/devices/single.html +++ b/website/layouts/devices/single.html @@ -2,7 +2,7 @@ {{ $siteUrl := .Site.BaseURL }} -
+
{{ $image := .Resources.GetMatch (printf "images/%s" .Params.photos.main) }} @@ -21,12 +21,13 @@

{{ .Params.name }}

{{ with (index .Params.resellerURLs 0) }} - Buy Device + Buy Device {{ end }} {{with .Params.producturl}} - Partner Webpage + Partner Webpage {{ end }} - Contact Partner + Contact Partner
@@ -37,20 +38,24 @@

Specification

    - {{with .Params.sensors}}
  • Sensors: {{ range . }} {{ . }} {{ end }}
  • {{ end }} - {{with .Params.ipcode}}
  • Enclosure: {{ . }}
  • {{ end }} + {{with .Params.sensors}}
  • Sensors: {{ range . }} {{ . }} {{ end }}
  • {{ end }} + {{with .Params.ipcode}}
  • Enclosure: {{ . }}
  • + {{ end }} {{with .Params.dimensions}} -
  • - Dimensions: {{ .length }} x {{ .width }} x {{ .height }} mm -
  • {{ end }} +
  • + Dimensions: {{ .length }} x {{ .width }} x {{ .height }} mm +
  • {{ end }} {{with .Params.dimensions.diameter}}
  • Diameter: {{ . }}
  • {{ end }} - {{with .Params.operatingconditions.temperature}}
  • Temperature: {{ .min }}°C to {{ .max }}°C
  • {{ end }} + {{with .Params.operatingconditions.temperature}}
  • Temperature: {{ .min }}°C to {{ .max + }}°C
  • {{ end }}
    {{with .Params.weight}}
  • Weight: {{ . }} grams
  • {{ end }} - {{with .Params.codecs}}
  • Frequency plans: {{ range $key, $value := . }}{{ $key }} {{ end }}
  • {{ end }} + {{with .Params.codecs}}
  • Frequency plans: {{ range $key, $value := . }}{{ $key }} {{ end }}
  • {{ end }}
@@ -62,6 +67,12 @@

Specification

+ + {{ end }}