Skip to content

Commit

Permalink
FIX - ensure that posts are sorted before selecting the last ones
Browse files Browse the repository at this point in the history
  • Loading branch information
robertoostenveld committed Nov 28, 2024
1 parent 5c5cbe7 commit e77b42e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ To get started, head over to the [getting started](/getting_started) documentati
_The latest code developments can be tracked in detail on [GitHub](/development/git)._

{% assign counter = 0 %}
{% for post in site.posts %}
{% assign posts = site.posts | sort | reverse %}
{% for post in posts %}
{% if post.category == 'release' %}

{% if counter == 0 %}
Expand Down Expand Up @@ -105,7 +106,8 @@ _These are recent citations on [Pubmed](https://pubmed.ncbi.nlm.nih.gov/21253357
_You can also follow us on [Mastodon](https://fosstodon.org/@fieldtriptoolbox)._

{% assign counter = 0%}
{% for post in site.posts %}
{% assign posts = site.posts | sort | reverse %}
{% for post in posts %}
{% if post.category == 'news' %}

{% if counter < 7 %}
Expand Down

0 comments on commit e77b42e

Please sign in to comment.