Better handling of brand link handling for languages.

This commit is contained in:
Adsooi 2021-08-09 14:45:34 +02:00
parent 68acf336b7
commit 451e314408
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160

View file

@ -3,7 +3,11 @@
<div class="center nav-flex"> <div class="center nav-flex">
{{ $currentPage := . }} {{ $currentPage := . }}
<div class="nav-mobile"> <div class="nav-mobile">
<a class="navbar-brand" href="{{ .Site.Params.brandWebsite }}{{ .Site.Language.Lang }}" role="button"> {{ if eq .Site.Language.Lang "en" }}
<a class="navbar-brand" href="{{ .Site.Params.brandWebsite }}" role="button">
{{ else }}
<a class="navbar-brand" href="{{ .Site.Params.brandWebsite }}{{ .Site.Language.Lang }}/" role="button">
{{ end }}
<img src="/img/logo.svg" loading=lazy class="icon-brand" alt="Ad5001's icon"/> <img src="/img/logo.svg" loading=lazy class="icon-brand" alt="Ad5001's icon"/>
Ad5001 Ad5001
</a> </a>