{{- /* hreflang implementation for multilingual SEO */ -}}

<!-- French regional variations -->
<link rel="alternate" hreflang="fr-fr" href="https://www.mistergeek.net{{ .RelPermalink }}" />
<!-- <link rel="alternate" hreflang="fr-be" href="https://www.mistergeek.net/be{{ .RelPermalink }}" />
<link rel="alternate" hreflang="fr-ca" href="https://www.mistergeek.net/ca{{ .RelPermalink }}" />
<link rel="alternate" hreflang="fr-ch" href="https://www.mistergeek.net/ch{{ .RelPermalink }}" />
<link rel="alternate" hreflang="fr-lu" href="https://www.mistergeek.net/lu{{ .RelPermalink }}" /> -->

<!-- Default fallback -->
<link rel="alternate" hreflang="x-default" href="https://www.mistergeek.net{{ .RelPermalink }}" />

<!-- English version if exists -->
{{ range .Translations }}
{{ if eq .Language.Lang "en" }}
<link rel="alternate" hreflang="en" href="{{ .Permalink }}" />
{{ end }}
{{ end }}

<!-- Other translations -->
{{ range .Translations }}
{{ if ne .Language.Lang "en" }}
<link rel="alternate" hreflang="{{ .Language.Lang }}" href="{{ .Permalink }}" />
{{ end }}
{{ end }}

<!-- Canonical URL -->
<link rel="canonical" href="{{ .Permalink }}">

<!-- Mobile alternate -->
<link rel="alternate" media="only screen and (max-width: 640px)" href="{{ .Permalink }}">