fix sort order for posts via tag, version 33

This commit is contained in:
Konstantin 2024-04-09 09:40:18 +02:00
parent 74e11d8992
commit eacd3816f5
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,7 @@ class BlogTagIndexPage(Page):
def get_context(self, request):
tag = request.GET.get('tag')
blogpages = BlogPage.objects.filter(tags__name=tag)
blogpages = BlogPage.objects.live().filter(tags__name=tag).order_by('-first_published_at')
# Update template context
context = super().get_context(request)