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

Commit a322db4

Browse files
davishmcclurgRelequestual
authored andcommitted
Improve implementation draft list layout
This adds a comma between `draft` and `date-draft` items and checks for `empty` arrays to prevent stray "draft-0" output.
1 parent cdbcf69 commit a322db4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

implementations.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,11 @@ Validators
5050
<a href="{{ implementation.url}}">{{ implementation.name }}</a>
5151
<ul>
5252
<li><em>Supports:</em>
53-
{% if implementation.date-draft %}
53+
{% if implementation.date-draft and implementation.date-draft != empty %}
5454
{{ implementation.date-draft | sort | reverse | join: ", " }}
55+
{%- if implementation.draft and implementation.draft != empty %}, {% endif %}
5556
{% endif %}
56-
{% if implementation.draft %}
57+
{% if implementation.draft and implementation.draft != empty %}
5758
draft-0{{ implementation.draft | sort | reverse | join: ", -0" }}
5859
{% endif %}
5960
</li>

0 commit comments

Comments
 (0)