mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2024-11-25 12:46:44 +00:00
#489: use Rel or Permalink depending on if site is multihost
This commit is contained in:
parent
31662538df
commit
a424a062ca
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user