Skip to content

Commit 95f17f7

Browse files
committed
Use tags correctly and sort them ascending
1 parent df97870 commit 95f17f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

layouts/documentation.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
<article class="col-12">
2121
<div class="entry-content">{{ page.content }}</div>
2222
{% set component = page.component %}
23-
{% set tags = site.data.github.libimobiledevice[component].tags %}
24-
{% for tag in tags.releases %}
23+
{% set tags = site.data.github.libimobiledevice[component].tags | sort((a,b) => version_compare(b, a)) %}
24+
{% for tag in tags %}
2525
<div class="entry-content">
2626
<a href="{{ component }}/{{ tag }}/">{{ component }} {{ tag }}</a>
2727
</div>

0 commit comments

Comments
 (0)