Updated home, articles, and contact links to properly handle IT/EN language
routing by checking .Lang and building URLs without BaseURL prefix, matching
the pattern used in header.html
Co-Authored-By: Claude Haiku 4.5 <redacted>
<!-- Navigation Links -->
<div class="space-y-4 flex flex-col items-center mb-12">
- <a href="{{ .Site.BaseURL }}" class="btn btn-primary">
+ {{ $homeLink := "/" }}
+ {{ if eq .Lang "it" }}
+ {{ $homeLink = "/it/" }}
+ {{ end }}
+ <a href="{{ $homeLink }}" class="btn btn-primary">
{{ i18n "goHome" }}
</a>
- <a href="{{ .Site.BaseURL }}{{ .Site.Language.Lang }}/articles/" class="btn btn-secondary">
+ <a href="{{ if eq .Lang "it" }}/it{{ end }}/articles/" class="btn btn-secondary">
{{ i18n "browseArticles" }}
</a>
- <a href="{{ .Site.BaseURL }}{{ .Site.Language.Lang }}/is/here/" class="btn btn-outline">
+ <a href="{{ if eq .Lang "it" }}/it{{ end }}/is/here/" class="btn btn-outline">
{{ i18n "contactSupport" }}
</a>
</div>