Skip to content

Sort order for "Latest posts" not following date #475

Answered by pj398
pj398 asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the quick reply, but that actually wasn't the problem. I didn't realise that the sort_by = "date" needed to be included in /content/posts/_index.md, not just in content/_index.md - once I fixed that it started working as expected. (Figured it out by reading the comments in getzola/zola#561.)

Apologies!

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by welpo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #474 on January 29, 2025 20:46.