diff options
author | XhmikosR <xhmikosr@gmail.com> | 2018-12-23 15:12:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-23 15:12:13 +0300 |
commit | 7d5cb2df3ad1d3438c0753c78203bca54f28d5a8 (patch) | |
tree | 709fb7d75b75cd2a32c84cf515a2a63f3279a63d /site/docs | |
parent | 3c88ed70694a8994993a33a4155a098595915e8e (diff) |
versions: sort from newer to older. (#27898)
Diffstat (limited to 'site/docs')
-rw-r--r-- | site/docs/versions.html | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/site/docs/versions.html b/site/docs/versions.html index f883f52854..4f8f4ea3ac 100644 --- a/site/docs/versions.html +++ b/site/docs/versions.html @@ -9,18 +9,19 @@ description: An appendix of hosted documentation for nearly every release of Boo <div class="col-md"> <h2>{{ release.group }}</h2> <p>{{ release.description }}</p> - {% for version in release.versions %} + {% assign versions = release.versions | reverse %} + {% for version in versions %} {% if forloop.first %}<div class="list-group">{% endif %} - {% if version.v == site.docs_version %} - <a class="list-group-item list-group-item-action py-2 text-primary d-flex justify-content-between align-items-center" href="{{ release.baseurl }}/{{ version.v }}/"> - {{ version.v }} - <span class="badge badge-primary">Latest</span> - </a> - {% else %} - <a class="list-group-item list-group-item-action py-2 text-primary" href="{{ release.baseurl }}/{{ version.v }}/"> - {{ version.v }} - </a> - {% endif %} + {% if version.v == site.docs_version %} + <a class="list-group-item list-group-item-action py-2 text-primary d-flex justify-content-between align-items-center" href="{{ release.baseurl }}/{{ version.v }}/"> + {{ version.v }} + <span class="badge badge-primary">Latest</span> + </a> + {% else %} + <a class="list-group-item list-group-item-action py-2 text-primary" href="{{ release.baseurl }}/{{ version.v }}/"> + {{ version.v }} + </a> + {% endif %} {% if forloop.last %}</div>{% endif %} {% endfor %} </div> |