🚸 Prefer using absolute URLs over relative URLs

Closes: #997
This commit is contained in:
James Panther
2025-06-22 15:33:04 +10:00
parent b473215511
commit 29de0a1465
14 changed files with 44 additions and 48 deletions
+2 -2
View File
@@ -35,7 +35,7 @@
<div class="flex flex-grow">
{{ if eq $pageLang .Lang }}
<a
href="{{ cond hugo.IsMultihost $translation.Permalink $translation.RelPermalink }}"
href="{{ cond hugo.IsMultihost $translation.Permalink $translation.Permalink }}"
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"
@@ -44,7 +44,7 @@
>
{{ else }}
<a
href="{{ cond hugo.IsMultihost $translation.Permalink $translation.RelPermalink }}"
href="{{ cond hugo.IsMultihost $translation.Permalink $translation.Permalink }}"
class="w-full py-1 pe-10 ps-2 decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2"
>{{ .LanguageName }}</a
>