Show blog list ToC with newest first
This commit is contained in:
parent
65b36f5b07
commit
82701a706c
1 changed files with 2 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue