Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions _gitops/whats-new/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ If you missed any of our previous online announcements, you can find the latest

> To subscribe to an RSS / Atom feed for our SaaS release notes, please [click here]({{ site.baseurl }}/changelog/gitops.xml).

{% assign posts_by_year = site.posts-gitops | group_by_exp: "post", "post.date | date: '%Y'" %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you really need to do | reverse twice? here and in line 16

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the first one if for the years group and the second one is for the items inside the group.

{% assign posts_by_year = site.posts-gitops | group_by_exp: "post", "post.date | date: '%Y'" | reverse %}
{% for year in posts_by_year %}
<h2>{{ year.name }}</h2>
<ul>
{% for post in year.items %}
{% assign sorted_posts = year.items | reverse %}
{% for post in sorted_posts %}
<li>
<a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
</li>
Expand Down