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,8 +49,12 @@
|
||||||
{{ continue }}
|
{{ continue }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if hugo.IsMultihost }}
|
||||||
|
<a class='btn-lang' href='{{ urls.AbsLangURL "" }}'>{{ $lang_title }}</a>
|
||||||
|
{{ else }}
|
||||||
<a class='btn-lang' href='{{ . | relURL }}'>{{ $lang_title }}</a>
|
<a class='btn-lang' href='{{ . | relURL }}'>{{ $lang_title }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
publish = "exampleSite/public"
|
publish = "exampleSite/public"
|
||||||
|
|
||||||
[build.environment]
|
[build.environment]
|
||||||
HUGO_VERSION = "0.121.1"
|
HUGO_VERSION = "0.124.0"
|
||||||
HUGO_THEME = "repo"
|
HUGO_THEME = "repo"
|
||||||
|
|
||||||
[context.production]
|
[context.production]
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ tags = [
|
||||||
"theme"
|
"theme"
|
||||||
]
|
]
|
||||||
features = ["cover-image", "favicon", "header-menu", "auto-scroll"]
|
features = ["cover-image", "favicon", "header-menu", "auto-scroll"]
|
||||||
min_version = "0.111.2"
|
min_version = "0.124.0"
|
||||||
|
|
||||||
authors = [
|
authors = [
|
||||||
{name = "Jan Raasch", homepage = "https://www.janraasch.com"},
|
{name = "Jan Raasch", homepage = "https://www.janraasch.com"},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue