{{/* Header version info - compact display in navbar */}}
{{ $buildInfo := .Site.Data.build_info }}
{{ if $buildInfo }}
<div class="navbar-version-info d-none d-md-flex align-items-center">
  <small class="text-light opacity-75">
    {{ if $buildInfo.git_tag }}
      <span class="fw-bold">{{ $buildInfo.git_tag }}</span>
    {{ else }}
      <span class="fw-bold">{{ $buildInfo.git_branch }}</span>
    {{ end }}
    <span class="mx-1">@</span><code class="text-light">{{ $buildInfo.git_commit_short }}</code>
    {{ if $buildInfo.git_dirty }}
      <span class="badge bg-warning text-dark ms-1 px-1" style="font-size: 0.6rem;">*</span>
    {{ end }}
  </small>
</div>
{{ end }}