fix sort order for posts via tag, version 33
This commit is contained in:
parent
74e11d8992
commit
eacd3816f5
2 changed files with 2 additions and 2 deletions
2
Makefile
2
Makefile
|
@ -1,5 +1,5 @@
|
||||||
.PHONY: help build publish
|
.PHONY: help build publish
|
||||||
VERSION = 1.0.32
|
VERSION = 1.0.33
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@perl -nle'print $& if m{^[a-zA-Z_-]+:.*?## .*$$}' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
@perl -nle'print $& if m{^[a-zA-Z_-]+:.*?## .*$$}' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
||||||
|
|
|
@ -35,7 +35,7 @@ class BlogTagIndexPage(Page):
|
||||||
|
|
||||||
def get_context(self, request):
|
def get_context(self, request):
|
||||||
tag = request.GET.get('tag')
|
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
|
# Update template context
|
||||||
context = super().get_context(request)
|
context = super().get_context(request)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue