fix: add missing template variables for pages listing context
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 35s

The shared sidebar/filter templates expect selected_groups, tags, authors
etc. Provide empty defaults when rendering the pages view.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-10 14:38:00 +00:00
parent 161f48b0e6
commit 632df29356

View File

@@ -90,6 +90,17 @@ def register(url_prefix, title):
**data,
"content_type": "pages",
"search": q.search,
"selected_tags": (),
"selected_authors": (),
"selected_groups": (),
"sort": None,
"view": None,
"drafts": None,
"draft_count": 0,
"tags": [],
"authors": [],
"tag_groups": [],
"posts": data.get("pages", []),
}
if not is_htmx_request():
html = await render_template("_types/blog/index.html", **context)