Skip to content
Snippets Groups Projects
Commit d9cdbafc authored by alexisben's avatar alexisben
Browse files

hotfix: handle empty key figures

parent e8e5604e
No related branches found
No related tags found
No related merge requests found
......@@ -21,20 +21,22 @@
</div>
{{ end -}}
{{ $list_class := "odd-items" }}
{{ if (modBool (len $figures) 2) }}
{{ $list_class = "even-items" }}
{{ end }}
<ul class="{{ $list_class }}">
{{- range .figures }}
<li>
<dl>
<dt><strong>{{ .number }}</strong>{{ partial "PrepareHTML" .unit }}</dt>
<dd>{{ partial "PrepareHTML" .description }}</dd>
</dl>
</li>
{{ end -}}
</ul>
{{ if $figures }}
{{ $list_class := "odd-items" }}
{{ if (modBool (len $figures) 2) }}
{{ $list_class = "even-items" }}
{{ end }}
<ul class="{{ $list_class }}">
{{- range .figures }}
<li>
<dl>
<dt><strong>{{ .number }}</strong>{{ partial "PrepareHTML" .unit }}</dt>
<dd>{{ partial "PrepareHTML" .description }}</dd>
</dl>
</li>
{{ end -}}
</ul>
{{ end -}}
</div>
</div>
</section>
......
......@@ -42,7 +42,7 @@
top: 0;
left: 50%;
transform: translateX(-50%);
width: calc(1920px + var(--d-grid-margin));
width: calc(1680px + var(--d-grid-margin));
z-index: 9999;
font-family: sans-serif;
font-size: 12px;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment