Skip to content

Commit

Permalink
Sort blog entries by newest to oldest
Browse files Browse the repository at this point in the history
  • Loading branch information
JDSeiler committed Nov 22, 2024
1 parent 4d04549 commit 5eea87c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blog.njk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ layout: layouts/base-layout.njk
POSTS
</h1>
<ul>
{%- for post in collections.post -%}
{%- for post in collections.post | reverse -%}
<li>
<a href="{{ post.url }}">{{post.date.toLocaleDateString()}} :: {{post.data.title}}</a>
</li>
Expand Down

0 comments on commit 5eea87c

Please sign in to comment.