From 82701a706c88a452f1cdbad6d92c500d2ab809fb Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 20 Sep 2022 09:33:58 +0100 Subject: [PATCH] Show blog list ToC with newest first --- website/blog/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/blog/models.py b/website/blog/models.py index 77cdcd4..e4f23a8 100644 --- a/website/blog/models.py +++ b/website/blog/models.py @@ -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]