From 632df29356fc911e2fe087f683cabe892b33a2cc Mon Sep 17 00:00:00 2001 From: giles Date: Tue, 10 Feb 2026 14:38:00 +0000 Subject: [PATCH] fix: add missing template variables for pages listing context 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 --- bp/blog/routes.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bp/blog/routes.py b/bp/blog/routes.py index eca9cf6..805f474 100644 --- a/bp/blog/routes.py +++ b/bp/blog/routes.py @@ -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)