Prefer existing and translated variant of home page (#342)
* Prefer existing and translated variant of home page as the site link in the menu header. * More compact "cond"-version of fix.
This commit is contained in:
parent
553d378db3
commit
345cb5d947
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<h2 class="book-brand">
|
||||
<a href="{{ .Site.BaseURL | relLangURL }}">
|
||||
<a href="{{ cond (not .Site.Home.File) .Sites.First.Home.RelPermalink .Site.Home.RelPermalink }}">
|
||||
{{- with .Site.Params.BookLogo -}}
|
||||
<img src="{{ . | relURL }}" alt="Logo" />
|
||||
{{- end -}}
|
||||
|
|
Loading…
Reference in a new issue