{% import "partials/path-item.html" as item with context %} {% if page.meta and page.meta.hide %} {% set hidden = "hidden" if "path" in page.meta.hide %} {% endif %} {% set _hub_label = config.extra.hub | default("ATLAS Docs") %} {% set _hub_url = config.extra.hub_url | default("https://atlas.docs.cern.ch") %} {% set _norm_site = config.site_url | default("") | lower | replace("https://", "") | replace("http://", "") | replace("/", "") %} {% set _norm_hub = _hub_url | lower | replace("https://", "") | replace("http://", "") | replace("/", "") %} {% set _is_hub_site = config.extra.hub_is_self | default(false) or (_norm_site and _norm_site == _norm_hub) %} {% set _parent_label = config.extra.parent | default("") %} {% set _parent_url = config.extra.parent_url | default("") %} {% set _has_parent = _parent_label and _parent_url %} {% set depth = page.ancestors | length %} {% if not _is_hub_site %} {% set depth = depth + 1 %} {% endif %} {% if nav.homepage %} {% set depth = depth + 1 %} {% endif %} {% if _has_parent %} {% set depth = depth + 1 %} {% endif %} {% if depth > 1 %} {% endif %}