use urls.AbsLangURL if hugo.IsMultihost

Signed-off-by: Daniel Holbach <daniel.holbach@gmail.com>
This commit is contained in:
Daniel Holbach 2024-06-01 18:30:59 +02:00 committed by zjedi
parent b5c6238a1b
commit 33337a69ea
3 changed files with 6 additions and 2 deletions

View file

@ -49,7 +49,11 @@
{{ continue }}
{{ end }}
{{ if hugo.IsMultihost }}
<a class='btn-lang' href='{{ urls.AbsLangURL "" }}'>{{ $lang_title }}</a>
{{ else }}
<a class='btn-lang' href='{{ . | relURL }}'>{{ $lang_title }}</a>
{{ end }}
{{ end }}
</div>
{{ end }}

View file

@ -2,7 +2,7 @@
publish = "exampleSite/public"
[build.environment]
HUGO_VERSION = "0.121.1"
HUGO_VERSION = "0.124.0"
HUGO_THEME = "repo"
[context.production]

View file

@ -24,7 +24,7 @@ tags = [
"theme"
]
features = ["cover-image", "favicon", "header-menu", "auto-scroll"]
min_version = "0.111.2"
min_version = "0.124.0"
authors = [
{name = "Jan Raasch", homepage = "https://www.janraasch.com"},