Skip to content

Commit

Permalink
Fixed issue with update posts showing in wrong order.
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Straughan committed Nov 29, 2023
1 parent 1d4aa84 commit e72a217
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ <h1>Contact</h1>

<!-- Updates -->
<div class="update-panels">
{%- for update in site.updates limit:3 -%}
{% assign sorted_updates = site.updates | sort: 'date' | reverse %}
{%- for update in sorted_updates limit:3 -%}
<a href="{{update.url | absolute_url}}">
<div>
<span class="material-icons">event</span> {{update.date | date: "%m/%d/%Y" }}
Expand Down
3 changes: 2 additions & 1 deletion updates.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ <h1><span class="material-icons">newspaper</span>Updates</h1>
</div>

<div class="update-panels">
{%- for update in site.updates -%}
{% assign sorted_updates = site.updates | sort: 'date' | reverse %}
{%- for update in sorted_updates -%}
<a href="{{update.url | absolute_url}}">
<div>
<span class="material-icons">event</span> {{update.date | date: "%m/%d/%Y" }}
Expand Down

0 comments on commit e72a217

Please sign in to comment.