{% 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 _atlasdocs = config.extra.atlasdocs | default({}) %} {% set _hub_label = _atlasdocs.hub | default("ATLAS Docs") %} {% set _hub_url = _atlasdocs.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 = _atlasdocs.hub_is_self | default(false) or (_norm_site and _norm_site == _norm_hub) %} {% set _parent_label = _atlasdocs.parent | default("") %} {% set _parent_url = _atlasdocs.parent_url | default("") %} {% set _has_parent = _parent_label and _parent_url %} {% set _show_last_update = not (_atlasdocs.show_pagestatus | default(false)) %} {% set _last_update_raw = "" %} {% if page.meta and page.meta.git_revision_date_only is defined and page.meta.git_revision_date_only %} {% set _last_update_raw = page.meta.git_revision_date_only[0:10] %} {% elif page.meta and page.meta.git_revision_date_cern is defined and page.meta.git_revision_date_cern %} {% set _last_update_raw = page.meta.git_revision_date_cern[0:10] %} {% endif %} {% set _last_update = "" %} {% if _show_last_update and _last_update_raw | length >= 10 %} {% set _lu_year = _last_update_raw[0:4] %} {% set _lu_month = _last_update_raw[5:7] %} {% set _lu_day = _last_update_raw[8:10] | int %} {% set _lu_months = {"01": "January", "02": "February", "03": "March", "04": "April", "05": "May", "06": "June", "07": "July", "08": "August", "09": "September", "10": "October", "11": "November", "12": "December"} %} {% set _lu_suffix = "th" %} {% if _lu_day % 10 == 1 and _lu_day != 11 %} {% set _lu_suffix = "st" %} {% elif _lu_day % 10 == 2 and _lu_day != 12 %} {% set _lu_suffix = "nd" %} {% elif _lu_day % 10 == 3 and _lu_day != 13 %} {% set _lu_suffix = "rd" %} {% endif %} {% set _last_update = _lu_day | string + _lu_suffix + " " + _lu_months[_lu_month] + " " + _lu_year %} {% endif %} {% 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 %}