{# ================================================================================ Tag Navigation Sidebar Component (Kida-Native) ================================================================================ Displays a list of all tags in the sidebar. KIDA FEATURES USED: - {% let %} for template-scoped variables - Optional chaining (?.) for null-safe access - Null coalescing (??) for smart defaults Variables: - tags: List of tag objects with .name and .count (optional) - current_tag: Current tag name if viewing a tag page (optional) ================================================================================ #} {# Template-scoped variables #} {# Popular tags - assign outside cache for variable access #} {% if tags is defined %} {% let all_tags = tags %} {% else %} {% let all_tags = popular_tags(limit=50) %} {% end %} {% let current_tag_normalized = (current_tag ?? '') | lower %}