From 33337a69ea807174dbcb456d5eb19a99a15fa147 Mon Sep 17 00:00:00 2001 From: Daniel Holbach Date: Sat, 1 Jun 2024 18:30:59 +0200 Subject: [PATCH] use urls.AbsLangURL if hugo.IsMultihost Signed-off-by: Daniel Holbach --- layouts/index.html | 4 ++++ netlify.toml | 2 +- theme.toml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index 3f1d81f..a1f63d1 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -49,7 +49,11 @@ {{ continue }} {{ end }} + {{ if hugo.IsMultihost }} + {{ $lang_title }} + {{ else }} {{ $lang_title }} + {{ end }} {{ end }} {{ end }} diff --git a/netlify.toml b/netlify.toml index b40dbe7..339ca3f 100644 --- a/netlify.toml +++ b/netlify.toml @@ -2,7 +2,7 @@ publish = "exampleSite/public" [build.environment] - HUGO_VERSION = "0.121.1" + HUGO_VERSION = "0.124.0" HUGO_THEME = "repo" [context.production] diff --git a/theme.toml b/theme.toml index e345ee1..e712b99 100644 --- a/theme.toml +++ b/theme.toml @@ -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"},