Show blog list ToC with newest first

This commit is contained in:
Jake Howard 2022-09-20 09:33:58 +01:00
parent 65b36f5b07
commit 82701a706c
Signed by: jake
GPG Key ID: 57AFB45680EDD477

View File

@ -32,7 +32,8 @@ class BlogPostListPage(BaseListingPage):
post_month=TruncMonth("date", output_field=models.DateField())
)
.values_list("post_month", flat=True)
}
},
reverse=True,
)
return [TocEntry(post_month, post_month, 0, []) for post_month in post_months]