- Notifications
You must be signed in to change notification settings - Fork165
fix: Reverse order of posts in gitops changelog#1344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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). | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe 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> | ||
| {% assign sorted_posts = year.items | reverse %} | ||
| {% for post in sorted_posts %} | ||
| <li> | ||
| <a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a> | ||
| </li> | ||