docs+comments: align plan with gitea PR-only CI and close remaining blockers
Some checks failed
CI / nightly-e2e (pull_request) Has been skipped
CI / ci (pull_request) Failing after 20s

This commit is contained in:
Mark
2026-02-28 17:17:19 +00:00
parent 0c9340d279
commit 5adff60d4b
6 changed files with 225 additions and 24 deletions

View File

@@ -31,15 +31,16 @@ class HomePage(Page):
def get_context(self, request, *args, **kwargs):
ctx = super().get_context(request, *args, **kwargs)
articles = (
articles_qs = (
ArticlePage.objects.live()
.public()
.select_related("author")
.prefetch_related("tags__metadata")
.order_by("-first_published_at")
)
articles = list(articles_qs[:5])
ctx["featured_article"] = self.featured_article
ctx["latest_articles"] = articles[:5]
ctx["latest_articles"] = articles
ctx["more_articles"] = articles[:3]
return ctx