#489: use Rel or Permalink depending on if site is multihost

This commit is contained in:
Alex Shpak 2024-10-02 16:34:48 +02:00
parent 31662538df
commit a424a062ca

View File

@ -23,7 +23,7 @@
<ul> <ul>
{{ range .Site.Languages }}{{ with index $translations .Lang }} {{ range .Site.Languages }}{{ with index $translations .Lang }}
<li> <li>
<a href="{{ .Permalink }}"> <a href="{{ cond hugo.IsMultihost .Permalink .RelPermalink }}">
{{ .Language.LanguageName }} {{ .Language.LanguageName }}
</a> </a>
</li> </li>