Skip to content

Commit

Permalink
🐛 Fix: incorrect translation link in multihost mode #988
Browse files Browse the repository at this point in the history
  • Loading branch information
shane-yao committed Jan 3, 2025
1 parent 89ae980 commit 9ad2fa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/translations.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<div class="flex flex-grow">
{{ if eq $pageLang .Lang }}
<a
href="{{ $translation.RelPermalink }}"
href="{{ cond hugo.IsMultihost $translation.Permalink $translation.RelPermalink }}"
class="flex w-full items-center justify-between bg-primary-100 px-2 py-1 dark:bg-primary-900"
>{{ .LanguageName }}<span
class="ms-2 w-6 text-primary-600 dark:text-primary-400"
Expand All @@ -44,7 +44,7 @@
>
{{ else }}
<a
href="{{ $translation.RelPermalink }}"
href="{{ cond hugo.IsMultihost $translation.Permalink $translation.RelPermalink }}"
class="w-full py-1 pe-10 ps-2 decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2"
>{{ .LanguageName }}</a
>
Expand Down

0 comments on commit 9ad2fa7

Please sign in to comment.