diff --git a/bp/post/routes.py b/bp/post/routes.py index 732a2a9..b7ac0b5 100644 --- a/bp/post/routes.py +++ b/bp/post/routes.py @@ -70,10 +70,6 @@ def register(): post_slug = (g.post_data.get("post") or {}).get("slug", "") # Widget-driven container nav - import logging - _log = logging.getLogger("coop") - _log.warning("WIDGET DEBUG: %d nav widgets registered, post_id=%s slug=%s", - len(widgets.container_nav), db_post_id, post_slug) container_nav_loaded = [] for w in widgets.container_nav: try: @@ -82,12 +78,9 @@ def register(): post_slug=post_slug, ) has_data = any(v for v in wctx.values() if isinstance(v, list) and v) - _log.warning("WIDGET DEBUG: %s has_data=%s keys=%s", w.domain, has_data, - {k: len(v) if isinstance(v, list) else v for k, v in wctx.items()}) if has_data: container_nav_loaded.append({"widget": w, "ctx": wctx}) - except Exception as e: - _log.exception("WIDGET ERROR: %s: %s", w.domain, e) + except Exception: ctx = { **p_data, diff --git a/shared b/shared index 8b6be6d..71729ff 160000 --- a/shared +++ b/shared @@ -1 +1 @@ -Subproject commit 8b6be6da96f0a129ae3f5250e28bef186c4fc75b +Subproject commit 71729ffb2830bb80d1bc591b08e693a2625c2ad7 diff --git a/templates/_types/post/_nav.html b/templates/_types/post/_nav.html index aabea7a..037bdcd 100644 --- a/templates/_types/post/_nav.html +++ b/templates/_types/post/_nav.html @@ -1,6 +1,6 @@ {% import 'macros/links.html' as links %} - {# Associated Entries and Calendars - vertical on mobile, horizontal with arrows on desktop #} - {% if (associated_entries and associated_entries.entries) or calendars or markets %} + {# Widget-driven container nav — entries, calendars, markets #} + {% if container_nav_widgets %}