Skip to content

Commit 4912635

Browse files
fix: Reverse order of posts in gitops changelog (#1344)
1 parent 629065b commit 4912635

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

_gitops/whats-new/changelog.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ If you missed any of our previous online announcements, you can find the latest
99

1010
> To subscribe to an RSS / Atom feed for our SaaS release notes, please [click here]({{ site.baseurl }}/changelog/gitops.xml).
1111
12-
{% assign posts_by_year = site.posts-gitops | group_by_exp: "post", "post.date | date: '%Y'" %}
12+
{% assign posts_by_year = site.posts-gitops | group_by_exp: "post", "post.date | date: '%Y'" | reverse %}
1313
{% for year in posts_by_year %}
1414
<h2>{{ year.name }}</h2>
1515
<ul>
16-
{% for post in year.items %}
16+
{% assign sorted_posts = year.items | reverse %}
17+
{% for post in sorted_posts %}
1718
<li>
1819
<a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
1920
</li>

0 commit comments

Comments
 (0)