Skip to content

Commit d0e4946

Browse files
committed
Display LTS flag and dates
1 parent 27b7978 commit d0e4946

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

migration-guides.html

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,23 @@ <h1>Migration Guides</h1>
77
{% assign doclist = site.migrations | sort: 'version_counter' | where: 'unversion_counter', nil %}
88
<ul>
99
{% for doc in doclist %}
10+
{% if doc.lts == true %}
11+
{% assign lts = ' LTS ' %}
12+
{% else %}
13+
{% assign lts = '' %}
14+
{% endif %}
15+
1016
{% if doc.proposed_version %}
1117
{% assign comment = ', will be ' | append: doc.proposed_version %}
1218
{% else %}
13-
{% assign comment = '' %}
19+
{% if doc.date != site.time %}
20+
{% assign pretty_date = doc.date | date: "%-d %B %Y" %}
21+
{% assign comment = ' – released on ' | append: pretty_date %}
22+
{% else %}
23+
{% assign comment = ' – to be released' %}
24+
{% endif %}
1425
{% endif %}
15-
<li><a href="{{ site.baseurl }}{{ doc.url }}">{{ doc.version }}</a>{{ comment }}</li>
26+
<li><a href="{{ site.baseurl }}{{ doc.url }}">{{ doc.version }}</a> <strong>{{lts}}</strong> {{ comment }}</li>
1627
{% endfor %}
1728
</ul>
1829

0 commit comments

Comments
 (0)