Skip to content

Commit

Permalink
Display LTS flag and dates
Browse files Browse the repository at this point in the history
  • Loading branch information
holly-cummins committed Sep 3, 2024
1 parent 27b7978 commit d0e4946
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions migration-guides.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,23 @@ <h1>Migration Guides</h1>
{% assign doclist = site.migrations | sort: 'version_counter' | where: 'unversion_counter', nil %}
<ul>
{% for doc in doclist %}
{% if doc.lts == true %}
{% assign lts = ' LTS ' %}
{% else %}
{% assign lts = '' %}
{% endif %}

{% if doc.proposed_version %}
{% assign comment = ', will be ' | append: doc.proposed_version %}
{% else %}
{% assign comment = '' %}
{% if doc.date != site.time %}
{% assign pretty_date = doc.date | date: "%-d %B %Y" %}
{% assign comment = ' – released on ' | append: pretty_date %}
{% else %}
{% assign comment = ' – to be released' %}
{% endif %}
{% endif %}
<li><a href="{{ site.baseurl }}{{ doc.url }}">{{ doc.version }}</a>{{ comment }}</li>
<li><a href="{{ site.baseurl }}{{ doc.url }}">{{ doc.version }}</a> <strong>{{lts}}</strong> {{ comment }}</li>
{% endfor %}
</ul>

Expand Down

0 comments on commit d0e4946

Please sign in to comment.