-
System informationZola version: 0.19.2 Expected behaviourPosts in "Latest posts" section of home page ordered chronologically starting with the newest. Actual behaviourPosts are listed in a non-chronological order. Steps to reproduceHi, thanks for this amazing and well-documented theme! I've been using tabi for a tennis blog side project and everything has been smooth, but I'm having an issue with the order that the "Latest posts" appear in on the main page. I have my posts living in
Unfortunately, I'm not seeing the expected behaviour on the site. The posts on the home page each have a date value set in their TOML header like I've figured out that each time I run I'm sure I'm missing something but I can't figure it out. Any help appreciated. Thanks! Additional contextNo response Final checklist
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Thank you for the kind words!
Try removing the quotation marks :) Right now Zola is trying to sort by a string and not a date object (TOML docs). That should fix it! |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick reply, but that actually wasn't the problem. I didn't realise that the Apologies! |
Beta Was this translation helpful? Give feedback.
-
Glad you fixed it! Thanks for reporting back :) |
Beta Was this translation helpful? Give feedback.
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 incontent/_index.md
- once I fixed that it started working as expected. (Figured it out by reading the comments in getzola/zola#561.)Apologies!