Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Commit 3c7fdaa

Browse files
committed
Improve implementation draft list layout
This adds a comma between `draft` and `date-draft` items and moves the leading "draft-" text to before the first item.
1 parent 4e1a8b7 commit 3c7fdaa

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

implementations.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,14 @@ Validators
5050
<a href="{{ implementation.url}}">{{ implementation.name }}</a>
5151
<ul>
5252
<li><em>Supports:</em>
53-
{% if implementation.date-draft %}
54-
{{ implementation.date-draft | sort | reverse | join: ", " }}
55-
{% endif %}
56-
{% if implementation.draft %}
57-
draft-0{{ implementation.draft | sort | reverse | join: ", -0" }}
58-
{% endif %}
53+
draft
54+
{%- if implementation.date-draft and implementation.date-draft != empty -%}
55+
-{{ implementation.date-draft | sort | reverse | join: ", " -}}
56+
{%- if implementation.draft and implementation.draft != empty -%}, {% endif -%}
57+
{%- endif -%}
58+
{%- if implementation.draft and implementation.draft != empty -%}
59+
-0{{ implementation.draft | sort | reverse | join: ", -0" -}}
60+
{%- endif -%}
5961
</li>
6062

6163
{% if implementation.compliance %}

0 commit comments

Comments
 (0)