mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-07 04:14:31 +00:00
fix: multilingual mode with different baseURLs
With Hugo v0.60+, the translation menu in the navbar is broken when a different baseURL is set for each multilingual site. This update attempts to fix that. See #1503
This commit is contained in:
1 parent
eb953ed475
commit
48397fb6d4
1 file changed
+1
-1
@@ -140,7 +140,7 @@
|
||||
<span>{{ index site.Data.i18n.languages .Lang }}</span>
|
||||
</div>
|
||||
{{ range .Translations }}
|
||||
<a class="dropdown-item" href="{{ .RelPermalink }}"{{ if $.IsHome }} data-target="{{ .RelPermalink }}"{{ end }}>
|
||||
<a class="dropdown-item" href="{{ .Permalink }}"{{ if $.IsHome }} data-target="{{ .RelPermalink }}"{{ end }}>
|
||||
<span>{{ index site.Data.i18n.languages .Lang }}</span>
|
||||
</a>
|
||||
{{ end }}
|
||||
|
||||
Reference in new issue
Block a user