{{- /*
Desktop and mobile site header with navigation.
Renders two header variants:
- Desktop: full navigation menu with submenus, search trigger, theme switch, and language switcher.
- Mobile: compact header with hamburger menu, search, theme switch, and language select.
Both support TypeIt animation for title/subtitle, GitHub corner integration, and custom menu items.
Called from: layouts/baseof.html.
*/ -}}
{{- /*
Whether to show draft menu items in the navigation.
Controlled via env var at build time: HUGO_PARAMS_MENU_DRAFT=true hugo server
Replaces the deprecated .Site.BuildDrafts (Hugo v0.156.0).
See: https://discourse.gohugo.io/t/deprecations-in-v0-156-0/56732/11
*/ -}}
{{- $menuDraft := getenv "HUGO_PARAMS_MENU_DRAFT" -}}
{{- $relLangURL := relLangURL "" -}}
{{- $githubCornerPosition := .Site.Params.github_corner.position | default "end" | partial "function/logical-direction.html" -}}
{{- /* Desktop header */ -}}
{{- /* Mobile header */ -}}