From 2788e24ec85baa86af6c35950ffb6ba95bc38526 Mon Sep 17 00:00:00 2001 From: giles Date: Wed, 11 Feb 2026 00:12:35 +0000 Subject: [PATCH] fix: inject post data into template context for post header row The post header bar needs `post` in the template context to render the page link, feature image, and nav. Added context processor to spread g.post_data into templates, matching the events app pattern. Co-Authored-By: Claude Opus 4.6 --- app.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app.py b/app.py index 90d1d91..e8b5e40 100644 --- a/app.py +++ b/app.py @@ -124,6 +124,13 @@ def create_app() -> "Quart": abort(404) g.market = market + @app.context_processor + async def inject_post(): + post_data = getattr(g, "post_data", None) + if not post_data: + return {} + return {**post_data} + # --- Root route: market listing --- @app.get("/") async def markets_listing():