Skip to content

Commit d56aa77

Browse files
committed
frontpage: Optimize version getting
This was reversing the array for no reason. We can just pick the last element directly
1 parent 211fba1 commit d56aa77

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

site/_layouts/frontpage.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
---
44
<section class="py-5 text-center">
55
<h1 class="col-lg-6 col-md-8 mx-auto">{{ site.title }}</h1>
6-
<h5 class="my-2 text-center">v{{ site.data.otd-versions | reverse | first }}</h5>
6+
<h5 class="my-2 text-center">v{{ site.data.otd-versions | last }}</h5>
77
{{ content }}
88
</section>
99
{% include platformcards.html %}

0 commit comments

Comments
 (0)