href = .RelPermalink -}}
            {{ else -}}
              {{ $href = .URL | relLangURL -}}
            {{ end -}}
            {{ $isExternal := ne $baseURL.Host (urls.Parse .URL).Host -}}
            <a
              {{/* */ -}}
              class="nav-link {{ if $active }}active{{- end }}"
              {{/* */ -}}
              href="{{ $href }}"
              {{- if $isExternal }}target="_blank" rel="noopener"{{- end -}}
            >
              {{- .Pre -}}
              <span>{{ .Name }}</span