Uncomment current_local_href in category_context for subcategory highlighting

The category selector compares current_local_href against sub.local_href
to determine the active subcategory. This was commented out, so no
subcategory was ever highlighted.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-19 15:17:12 +00:00
parent aab9cf3f6b
commit 1aa3659bb8

View File

@@ -142,7 +142,7 @@ def category_context(top_slug: Optional[str], sub_slug: Optional[str], nav: Dict
# list of subcategories, each with its own count
"subs_local": _order_subs_selected_first(subs, sub_slug),
#"current_local_href": current_local_href,
"current_local_href": current_local_href,
}
def _apply_category_blacklist(nav: Dict[str, Dict]) -> Dict[str, Dict]: