{# SPDX-FileCopyrightText: 2026 PythonWoods #} {# SPDX-License-Identifier: Apache-2.0 #} {# header.html — Global site header with marketing nav (Home · Docs). About is surfaced in the Docs sidebar, not in the top nav. Active link is emphasised based on the current page URL. #} {# Determine active section #} {% set is_home = page.url in ["", ".", "en/", "it/"] or page.url == "./" %} {% set is_docs = not is_home %} {# Labels (language-aware) #} {% if config.theme.language == "it" %} {% set label_home = "Home" %} {% set label_docs = "Docs" %} {% else %} {% set label_home = "Home" %} {% set label_docs = "Docs" %} {% endif %}