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:
@@ -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]:
|
||||
|
||||
Reference in New Issue
Block a user