use urls.AbsLangURL if hugo.IsMultihost
Signed-off-by: Daniel Holbach <daniel.holbach@gmail.com>
This commit is contained in:
parent
b5c6238a1b
commit
33337a69ea
3 changed files with 6 additions and 2 deletions
|
|
@ -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 }}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
publish = "exampleSite/public"
|
||||
|
||||
[build.environment]
|
||||
HUGO_VERSION = "0.121.1"
|
||||
HUGO_VERSION = "0.124.0"
|
||||
HUGO_THEME = "repo"
|
||||
|
||||
[context.production]
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue