{% from "layout/icons.html" import icon %} {# The sidebar (design section 22): pinned tiles, then the guide's lists in folding sections. Folding, hiding and pinning are run by sidebar.js; without it every section is open and the tiles still link. The team server's own pages list the team page, the add-repositories screen, the past catch-ups and each followed repository instead; a guide it mounts links back to the team page first. #} {% macro fold(name, heading, count=none) -%} {%- endmacro %} {% macro pin(page) -%} {%- endmacro %} {% if team_repositories is defined %} {% else %} {% set pinned_ids = nav.pins|map(attribute="id")|list %} {% set full = pinned_ids|length >= max_pins %} {% endif %}