You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My suggestion would be, since I don't expect to have hundreds and hundreds of posts to use the sorted function of python before doing this. As key for the sorted I would use the date property of the Post class (is a datetime object)
Describe the bug
Post results in the latest section at the index file are not sorted by date
To Reproduce
Steps to reproduce the behavior:
content
folder and add a header with at leastand change to different dates and titles in each file
content
folder and not the date in the headersExpected behavior
Post should be ordered chronologically
Additional context
To fix this bug the logic on how the post are picked should change. This is done in
https://github.com/yabirgb/arcade/blob/master/arcade/parsing.py#L82
My suggestion would be, since I don't expect to have hundreds and hundreds of posts to use the
sorted
function of python before doing this. As key for thesorted
I would use the date property of thePost
class (is a datetime object)https://github.com/yabirgb/arcade/blob/master/arcade/utils.py#L41
https://docs.python.org/3.5/library/functions.html#sorted
The text was updated successfully, but these errors were encountered: