Skip to content

Commit ebf10f6

Browse files
Fix sort order on the homepage (rust-gamedev#60)
1 parent 0f59975 commit ebf10f6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

content/posts/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
redirect_to = "/"
33
insert_anchor_links = "right"
44
page_template = "post.html"
5+
sort_by = "date"
56
+++

templates/includes/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h2 class="post-list-heading">{{ section.title | default(value="Latest News") }}
2929
{% set posts = get_section(path="posts/_index.md") %}
3030
{% if posts and posts.pages | length > 0 %}
3131
<ul class="post-list">
32-
{% for post in posts.pages | reverse %}
32+
{% for post in posts.pages %}
3333
<li>
3434
{% if post.date %}
3535
{% set date_format = config.extra.date_format | default(value="%b %-d, %Y") %}

0 commit comments

Comments
 (0)