Better handling of brand link handling for languages.
This commit is contained in:
parent
68acf336b7
commit
451e314408
1 changed files with 5 additions and 1 deletions
|
@ -3,7 +3,11 @@
|
|||
<div class="center nav-flex">
|
||||
{{ $currentPage := . }}
|
||||
<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"/>
|
||||
Ad5001
|
||||
</a>
|
||||
|
|
Loading…
Reference in a new issue